homesubfolder(
homesubfolder(
SUBPATH
)

The homesubfolder( function returns the folder id of a subfolder of the current user’s home folder.

Parameters

This function has one parameter:

subpath – the desired subfolder. This could be two or more levels deep, in which case each folder name should be separated by / (for compatibility with older versions of Panorama, a colon (:) is also accepted).

Description

This function returns the folder ID of a subfolder of the current user’s home folder.

    homesubfolder("Documents") ☞ /Users/johnsmith/Documents
    homesubfolder("Library/Application Support") ☞ /Users/johnsmith/Library/Application Support

See Also

- enclosingfolder( -- takes a full path and filename and returns the name of the folder that contains the file.
- enclosingpath( -- takes a full path and filename and returns the path of the folder that contains the file.
- makepackage -- creates a new package, and if necessary, also creates any enclosing folders needed to create the specified new package.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0.