Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'starting os X apps from command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
starting os X apps from command line
Authored by: mingking on Dec 22, '02 09:12:40PM

You're going too deep by referencing the raw exectuable inside the bundle. Just use the 'open' command and it will do what you need. E.g.:

open -a Mozilla

The app may need to be in the Applications folder otherwise you may need to provide a full path. But I tried launching applications that were on the Desktop and it worked fine.

You can also just open a file and it will use the default application. E.g.

open foo.txt

and it will open in TextEdit.

See the man page for the options to the open command.

[ Reply to This | # ]
starting os X apps from command line
Authored by: palott on Dec 23, '02 01:07:25AM


open -a works like a charm


[ Reply to This | # ]