how to get path of a file in mac code example Example: mac open path variable file open -a "Application Name" .bash_profile