filefolder(
FILEPATH
)

The filefolder( function returns the folder ID of the folder that contains the specified file.


Parameters

This function has one parameter:

filepath – a combined path and file name. This may be either a UNIX path or an HFS path. (See Files and Folders for more information.)


Description

This function returns the folder ID of the folder that contains the specified file.

filefolder("/Users/tomswift/Dropbox/PDF/Rocket Plans.pdf") ☞ /Users/tomswift/Dropbox/PDF
filefolder("~/Dropbox/PDF/Rocket Plans.pdf") ☞ /Users/tomswift/Dropbox/PDF

Note: This function is equivalent to:

folder(filepath(thetext))

Note: In Panorama X, the folder ID is actually the same as the full path to the folder.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.