January 2004
Intermediate to advanced
368 pages
7h 25m
English
As I discussed earlier, one neat innovation with Mac OS X is the addition of the open command, which allows you to easily launch the appropriate Aqua application for just about any type of file, whether it's a graphics image, a PDF document, or even an Excel spreadsheet. The problem with open is that it's a bit quirky in its behavior, and if you want to have it launch a named application, for example, you have to include the -a flag. More picky, if you don't specify the exact application name, it will complain and fail. A perfect job for a wrapper script.
#!/bin/sh # open2 - A smart wrapper for the cool Mac OS X 'open' command # to make it even more useful. By default, open launches the # appropriate application ...
Read now
Unlock full access