Maria’s Guides

Support and additional material for readers of books, articles, and digital media by Maria Langer.


Random Book Cover #1Random Book Cover #2Random Book Cover #3Random Book Cover #4Random Book Cover #5Random Book Cover #6Random Book Cover #7Random Book Cover #8Random Book Cover #9

Triggering Scripts and Automator Actions with iCal

Posted on December 17th, 2007 at 6:35 am ·
Filed in: RSS Mac OS Books   

A little-known use for the alarm feature.

I thought I’d written about this somewhere here, but I guess I didn’t. So here it is: a very easy way to trigger scripts and Automator actions on your Mac.

  1. Open iCal.
  2. iCal Event OptionsCreate a new event for the date and time you want the script or action to run.
  3. If the action should be repeated — for example, run every day at the same time — use the Repeat options to set up the frequency.
  4. Choose Open file from the Alarm pop-up menu.
  5. By default, iCal appears in a menu beneath it. Choose Other from that menu and use the dialog that appears to select the script or action you want to run. When you click the Select button, its name appears under Open File.
  6. Set the time option to read 0 minutes before.
  7. Save your settings.

From that point forward, the script or action will run on schedule with no additional effort on your part.

This works in the current version of iCal (part of Leopard) as well as the version that came with Tiger. I don’t know about earlier versions. The screenshot here is from Leopard.

A few bonus tips:

  • If you don’t want these events cluttering up your calendar views, put them in their own calendar and turn off the check box for it in the Calendars list. The events will continue to work, but you won’t have to look at them.
  • Be sure that neither Turn off alarms option is enabled in iCal’s Advanced preferences. If you turn off alarms, this alarm obviously won’t work. If alarms are turned off when iCal is not running, you’ll have to keep iCal running all the time for this alarm to work.
  • iCal 3 (which is part of Leopard) enables you to set multiple alarms for a single event. use this to run multiple scripts or to run the same script multiple times in a day.

Page References

Product ImageMac OS X 10.5 Leopard: Visual QuickStart Guide includes more information about related topics:

  • Adding iCal Events, page 254
  • Setting Event Details (including alarms), pages 255-257
  • Adding Calendars, page 261
  • Using AppleScript and Automator, pages 613-636

 • Read 1830 Times
Add to Del.icio.usAdd to Del.icio.us • Technorati ThisTechnorati This • Digg ThisDigg This • Stumble ItStumble it! • Twit ThisTwit This


 

 

2 responses so far ↓

  • 1 Max // Dec 18, 2007 at 11:21 pm

    Great solution! I was looking for a way to try and run my new Automator workflow that takes a picture from my iSight and imports it to iPhoto (trying to automate one of those picture every day for x amount of years things)

    I thought a cron job would be fitting but I like the simplicity of this. Thanks!

  • 2 Maria Langer // Dec 19, 2007 at 8:14 am

    I like this because it doesn’t require a cron job. I don’t like rolling up my sleeves and digging into Unix.

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

If you have a Gravatar, it will appear beside your approved comment.
No Gravatar? Get one free!