execute an app through terminal

I'm having trouble finding out how I run an app through the terminal?
My friend runs Linux and I'm sure he just types out the name and it executes, even if it's an app he runs in the graphic interface.

if i type the name of a .app file, it says it's a Directory. I'm familiar with the structure of these .app "programs" and how they are "packages" and so on, but in the terminal I basically want to run an OS X app as if I just double clicked the icon.

Posted on Oct 9, 2005 3:54 PM

Reply
4 replies

Oct 9, 2005 7:53 PM in response to brad f

Hi Brad,
Aside from what has already been reported, Cocoa apps also run if you execute the path to the real app. By this I mean the executable inside the app bundle. For instance to start up the Chess application, you can execute:

/Applications/Chess.app/Contents/MacOS/Chess

Thus for Cocoa apps, all the open command has to do is to translate the path from the app bundle to the executable inside.
--
Gary
~~~~
Giving money and power to governments is like giving
whiskey and car keys to teenage boys.
-- P.J. O'Rourke

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

execute an app through terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.