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.

410<br />

CHAPTER 23 MAC <strong>OS</strong> X AUTOMATION WITH AUTOMATOR AND APPLESCRIPT<br />

User: User information such as username, first name, last name, e-mail address, and .<strong>Mac</strong><br />

account name<br />

Utilities: Other useful values such as an AppleScript variable or a random number<br />

User-definable variables in the sidebar will have a blue icon with a V on them. They will also<br />

appear blue in the workflow. Variables whose contents are determined entirely by the computer<br />

will have a purple icon with a gear on it in the sidebar and will appear purple in the workflow.<br />

Just like with the sidebar, you can drag variables from the list into actions or the workflow.<br />

Variables are contained by the workflow but are used by actions, rather than accessed directly.<br />

As such, dragging a variable from the sidebar into an action will add it to that action, but dragging<br />

a variable into the workflow itself will create an action, Get Value of Variable.<br />

NOTE The Get Value of Variable action and the Set Value of Variable action are available from<br />

the Actions pane, in the Utilities category.<br />

The bottom of the workflow pane contains a list of all its variables and their values, if applicable.<br />

Adding variables to the workflow automatically adds them to this list, but you can also<br />

create them in the list directly via the context menu. You can also edit variable names and values<br />

in the list.<br />

From the Utilities group, drag in a Set Value of Variable action. From the Variable dropdown<br />

list, select “New variable...” and name it Image Folder, as shown in Figure 23-11. This will<br />

save the value of the Get Specified Finder Items action in the Image Folder variable, but you can<br />

also use the value immediately.<br />

Figure 23-11. Setting the value of a variable in Automator<br />

When you type a keyword and download images, they are going to be saved in the same<br />

folder as previous runs. Thus, your screen saver is going to remember all your previous keywords,<br />

diminishing the effect. Instead, you should clear the folder between runs so you always<br />

start fresh.

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

Saved successfully!

Ooh no, something went wrong!