Create a Workflow that Uses Multiple Apps
You can create a workflow that gathers information from one application and passes it to another. You saw an example of this in the very beginning of this chapter, on page 366, where Automator (Young Rossum, as I call him) found all the birthdays in my Address Book for the week and sent them each a birthday greeting from Mail.The following simple example shows you how to play a particular song to wake you up in the morning on a particular day using iTunes and iCal. This assumes, of course, that you sleep in the same room as your Mac. This can be particularly handy in hotel rooms when you're traveling!
1. | Open a new window/workflow in Automator. |
2. | In the Library pane, select iCal. |
3. | In the Action pane, find the action titled "New iCal Events" and drag it into the workflow pane, as shown below. |
4. | This makes a new event in iCal on the day and at the time you specify. So go through each parameter in the action and make your choices. |
5. | Click the "Alarm" menu to choose "Play Song…." This opens a small window where you can choose any song in your iTunes collection.This would actually be a lot easier if Apple would just let you add a song to the alarm directly in iCal.[View full size image]![]() |
6. | Click the "Run" button at the top of the window to run this workflow. iCal opens and displays the event.If you want this event to repeat, in iCal click the tiny menu next to "repeat" and make your choice. Below you can see that this song will wake me up for four days in a row.[View full size image]![]() |
7. | You can close iCal and go back to your Automator workflow. You might want to save the workflow so you can run it again.TIPYou can use this in combination with the Energy Saver schedule to make your Mac start up or wake up at a particular time each morning. Your Mac might be completely Shut Down, but this will turn it on for you: In the System Preferences, use the "Energy Saver" pane. Click the "Schedule…" button and set your times. |

