starting apps from console in OS X

Here is a shortcut for starting apps from the console in OS X.

  1. Create a shell script named “o”, as in a lowercase letter ‘o’.
  2. Chmod 755.
  3. Put it in your path.
  4. Put this in it:
    open /Applications/$1*

So then you can start Emacs with the command o Aq instead of open /Applications/Aquamacs and Firefox with o Fire rather than open /Applications/

One thought on “starting apps from console in OS X

  1. Or alternatively just: open -a my_app

    You need to type the full name of the app (with or without .app suffix), but at least it’s case insensitive.

Leave a Reply

Your email address will not be published. Required fields are marked *