Mac Hacks

Page 143

Figure 5-4. There are a lot of choices in Automator. You could scroll through them all but it’s much easier to use the search box. Then simply drag the Run Shell Script action into the pane on the right.

Figure 5-5. Telling Automator what you want it to do.

Now that you’ve adjusted the settings, it’s time to write the script. We’ll just use the default UNIX sort command. To do that, leave the Shell box set to “/bin/bash,” and the “Pass input” box set to “to stdin.” Then edit the text in the Run Shell Script box (where it initially says “cat”), and change it to cat|sort (Figure 5-6).

CHAPTER 5: MAKE IT AUTOMATIC

129


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.