bundleresourcepath(
NAME
)

The bundleresourcepath( function returns the file path and name of a specified item in the Panorama application bundle.


Parameters

This function has one parameter:

name – Name of the requested item, including the extension. If this parameter is "", or is missing entirely, the function will return the path to the overall resource folder inside the Panorama application bundle.


Description

This function returns the file path and name of a specified item in the Panorama application bundle.

bundleresourcepath("Credits.rtf")
    ☞ /Applications/PanoramaX.app/Contents/Resources/en.lproj/Credits.rtf

If no item name is specified, the function returns the the path to the overall resource folder inside the Panorama application bundle. This example lists all of the images files in the Panorama bundle:

listfiles(bundleresourcepath(),".png.jpg.gif.tiff")

Error Messages

bundleresourcepath( function error, resource “NAME” does not exist in the Panorama bundle. – This error is returned if the requested resource does not exist.


See Also


History

VersionStatusNotes
10.0NewNew in this version.