filepath(
FILEPATH
)

The filepath( function extracts the path from a combined path and filename.


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 extracts the path from a combined path and filename. (In other words, it removes the filename, leaving just the path.)

filepath("/Users/patjohnson/Documents/Alaska/Denali23.jpg") ☞ /Users/patjohnson/Documents/Alaska/
filepath("HD:Trips:Family:July4.jpg") ☞ HD:Trips:Family:.jpg

Note: This function is equivalent to:

sandwich("",
    arrayrange(thetext,1,arraysize(thetext,pathseparator(thetext))-1,pathseparator(thetext)),
    pathseparator(thetext))

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.