Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Sure. Use the open command. open is very clever and uses LaunchServices to open things in the same way as the Finder.

So open /Applications/iTunes.app will open iTunes.
open ~/Desktop/file.txt will open file.txt in Text Edit (or whatever you have defined to open text files).
 
semaja2 said:
if its the same as any linux exe cd to the dir and just do this


cd /Application/
./<app name>.app

That won't work as <app name>.app is actually a folder. The executable is at <app name>.app/Contents/MacOS/<app name>
 
robbieduncan said:
Sure. Use the open command. open is very clever and uses LaunchServices to open things in the same way as the Finder.

So open /Applications/iTunes.app will open iTunes.
open ~/Desktop/file.txt will open file.txt in Text Edit (or whatever you have defined to open text files).

If you want to avoid having to type in the path, then you can just use:

open -a iTunes.app

The -a switch will make it search the /Applications folder and its sub-folders for the matching file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.