Archives

Support this Site!

You may have noticed that there's very little third-party advertising on this site. I'd like to keep it that way. Here's how you can help:

  • Buy my books. They're available at great prices on Amazon.com.
  • Check out my training videos on Lynda.com. It's a great source for "all you can eat" training.
  • Donate a few dollars. It'll help cover my hosting costs and give you a chance to tell me what you want to see covered here.
  • Comment on blog posts. You can help get a discussion going that can benefit others, making the site more valuable for everyone.

Triggering Scripts and Automator Actions with iCal

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

3 comments to Triggering Scripts and Automator Actions with iCal

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>