posixpath(
PATH
)

The posixpath( function converts a path and filename into a POSIX path that can be used as a parameter to a shell command.


Parameters

This function has one parameter:

path – path and filename to be converted. Can be either a standard UNIX path or an HFS path. If an HFS path is passed, it must be a full path, including the disk name - relative HFS paths are not allowed.


Description

This function converts a path and filename into a POSIX path that can be used as a parameter to a shell command. Any special characters in the path or filename are escaped with the backslash (\) character. The input parameter must be a FULL path, including the disk name. Relative pathnames are not allowed.

posixpath("~/Dropbox/Miscellaneous/*Important* Anthem Staff Change.pdf")
    ☞ /Users/tomswift/Dropbox/Miscellaneous/\*Important\*\ Anthem\ Staff\ Change.pdf
posixpath("External HD:Users:Shared:SheepShaver:Mac OS ROM")
    ☞ /Volumes/External\ HD/Users/Shared/SheepShaver/Mac\ OS\ ROM

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now works with both UNIX paths and HFS paths.