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:
    #!/bin/sh
    open /Applications/$1*

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