05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Mac</strong> <strong>OS</strong> X Automation<br />

with Automator and<br />

AppleScript<br />

When you have some boring, repetitive task to do, you probably wish you could foist<br />

it off on an intern or on a really smart robot. If you have to collate reports or fold<br />

brochures, we can’t help you, but if you’re doing something on your computer over and over,<br />

we’ve got good news.<br />

Meet Otto, the friendly automation robot built into<br />

<strong>Mac</strong> <strong>OS</strong> X, shown in Figure 23-1. If you give him a stepby-step<br />

list of things to do, he’ll do them for you with the<br />

speed and accuracy computers are designed for, leaving you<br />

to the creative and interesting tasks to which your brain is<br />

better suited.<br />

From the Applications directory, double-clicking Otto<br />

launches Automator. This intuitive but powerful automa-<br />

Figure 23-1. Otto, the mascot and<br />

application icon for Automator<br />

Automator<br />

CHAPTER<br />

23<br />

tion tool lets you drag and drop instructions, which can be<br />

saved as workflows and launched anytime you need to get<br />

things done.<br />

Upon launching Automator from the Applications directory, you will be greeted with a template<br />

panel, as shown in Figure 23-2.<br />

Automator’s templates center around the types of data you will be working with; the categories<br />

are Files & Folders, Music & Audio, Photos & Images, and Text. There is also a Custom<br />

option, which just starts you with a blank workflow.<br />

Once you select a starting template, Automator will let you select where the data is coming<br />

from. Typically, the choices will be an iLife application, elsewhere on your machine, or the<br />

Internet.<br />

You’ll then select when the data will be provided. Your choices boil down to providing the<br />

data as part of the workflow, obtaining the data automatically at runtime, or asking the user for<br />

the data. Don’t sweat these choices too much, because you can change them later.<br />

For the purpose of demonstration, select the Text template. Then, from the “Get content<br />

from” drop-down menus below, select User Input and “Ask for text when my workflow runs.”<br />

Then, click the Choose button.<br />

401

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!