Home Tips and Instructions Mac OS X Starting Applications from the Command Line in Mac OS X
Starting Applications from the Command Line in Mac OS X PDF Print E-mail
1. Change to your Applications folder by typing:
cd /Applications


2. Then type name_of_application.app/Contents/MacOS/name_of_application

Example 1. If you wanted to open Nvu from the command line then you would type:

Nvu.app/Contents/MacOS/nvu


Note: for applications that have a space in their names put the entire name between quotation marks. See the example below

For example, if you wanted to open Vine Server you would type:

cd /Applications

then

"Vine Server.app"/Contents/MacOS/"Vine Server"

*Note: If you receive the following message:

kCGErrorRangeCheck : Window Server communications from outside of session allowed for root and console user only  INIT_Processeses(), could not establish the default connection to the WindowServer.Abort trap

then assuming that you are logged in with an administrative account you need to add sudo before the name and path to the program. See the example below.

sudo "Vine Server.app"/Contents/MacOS/"Vine Server"

You should then be prompted for you password and then the program should load corrrectly!

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.