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)'

$ osascript -e 'POSIX path of (path to fonts)'

$ osascript -e 'POSIX path of "LaCie"'

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?