open

ziggy on 2003-05-30T14:48:09

This is just a friendly reminder that the Mac OS X^W^W^WNeXTSTEP open command is a very cool thing.

One of the things I hated most about classic Mac OS was the near total reliance on the mouse. If I'm spending a lot of time typing away, I don't want to take my hands off the keyboard to launch an app or open a file. That's one of the things I liked most about running WindowMaker: I could launch things from the command line or from the desktop menu (which was easily controlled through the keyboard). Win* almost does this right. It's a lot better than Classic Mac OS, but a far cry away from X11/WindowMaker (if this particular capability matters at all to you).

But open works almost perfectly:

$ open -a 'yahoo! messenger'
$ open slideshow.key
$ open -a vim foo.pl
It would be better if there were no distinction between Cocoa apps and stuff in /usr/bin. But since there needs to be, at least open bridges that gap quite capably.