unixpath(
PATH
)

The unixpath( function converts an HFS path into a UNIX path.


Parameters

This function has one parameter:

path – Original path, which may be in UNIX or HFS format. See Files and Folders to learn more about Folder IDs.


Description

The unixpath( function takes a UNIX or HFS path and converts it to the UNIX path to that folder.

unixpath("~/Dropbox/Public/manifesto.pdf") ☞ Users/barbie/Dropbox/Public/manifesto.pdf
unixpath("Alaska:Projects:Bridge:plans.doc") ☞ /Volumes/Alaska/Projects/Bridge/plans.doc

Note: The unixpath( function has an alternate syntax that allows the folder and filename to be specified as separate parameters, like this:

hfspath(dbfolder(),"Logs") ☞ /Users/barbie/Documents/Databases/Logs

History

VersionStatusNotes
10.0NewNew in this version.