2005-04-19
Path to Mac folders in UNIX (POSIX) form
A simple call to OSA from Terminal gets the UNIX paths common Mac locations.
$ osascript -e 'path to desktop'
alias Macintosh HD:Users:olegyk:Desktop:
$ osascript -e 'POSIX path of (path to desktop)'
/Users/user/Desktop/
$ osascript -e 'POSIX path of (path to fonts)'
/System/Library/Fonts/
$ osascript -e 'POSIX path of "LaCie"'
/Volumes/LaCie
$ osascript -e 'path to desktop'
alias Macintosh HD:Users:olegyk:Desktop:
$ osascript -e 'POSIX path of (path to desktop)'
/Users/user/Desktop/
$ osascript -e 'POSIX path of (path to fonts)'
/System/Library/Fonts/
$ osascript -e 'POSIX path of "LaCie"'
/Volumes/LaCie