bundleresourcepath(
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

- info("panoramafolder") -- returns the location of the folder containing the currently running copy of Panorama.
- info("panoramaname") -- returns the name of the currently running copy of Panorama.

History

Version | Status | Notes
10.0 | New | New in this version.