[X-Unix] PATH ?

Doug McNutt douglist at macnauchtan.com
Sun Feb 27 11:53:09 PST 2005


At 14:12 -0500 2/27/05, Richard Nagle wrote:
>okay: mac 10.3 ( using bash as terminal )
>where would be the PATH file ( need to add a string )
>so I can launch a Application.

Timothy is correct about the variable $PATH but I worry about your terms "launch" and Application". Those are pretty specific to Aqua applications and the OS neXt GUI. If you are using something like:

open application

or

open -a application SomeFile

changing PATH won't help. If the application has extension .app or file type APPL you should expect that Finder knows about it and just use its short name. If you want to specify something else it'll require a full path. PATH is for "unix executables" and they are quite different from Cocoa or Carbon applications.

If you do need to change your path globally consider doing it in $HOME/.MacOS/environment.plist. It's an XML file and directory you have to create but what you do there will be read at login time and persist in everything you do rather than just in your shell of choice. There is an Apple tech note on it.

-- 

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.


More information about the X-Unix mailing list