tildepath(
THEPATH
)

The tildepath( function converts a path in the current user’s folder to tilde (~) notation.


Parameters

This function has one parameter:

thepath – path to be converted to tilde notation.


Description

This function converts a path in the current user’s folder to tilde (~) notation.

tildepath(info("userfolder")) ☞ ~
tildepath("/Users/joesmith/Desktop/") ☞ ~/Desktop/
tildepath(info("desktopfolder")) ☞ ~/Desktop/
tildepath(info("applicationsupportfolder")+"PanoramaX/") ☞ ~/Library/Application Support/PanoramaX/

If the specified path is not inside the users folder, it is left unchanged.

tildepath(info("tempfolder")) ☞ /var/folders/hm/0d3n1rxn6mg2db5kr6r985mm0000gn/T/
tildepath("/Users/megsmith/Desktop/") ☞ /Users/megsmith/Desktop/

See Also


History

VersionStatusNotes
10.2NewNew in this version.