concept iCal in category ruby

appears as: iCal
Ruby in Practice

This is an excerpt from Manning's book Ruby in Practice.

During development we often have to take shortcuts to get something done. Maybe we’re trying to get a demo running, or giving other developers a piece of code so they can start working again. We mark those things we haven’t finished with comments that say TODO or FIXME. And as much as we hate to admit it, we don’t always go back and fix that code—mostly we forget about it. So we’re going to create a simple script that will read these comments from the source code and adds tasks in Outlook or To Do items in iCal to remind us about them.

3.2.2. Automating iCal with Ruby

Now let’s turn our attention to Mac OS X and write the same example to automate iCal.

Listing 3.4. Turn TODO and FIXME comments into iCal To Dos
Listing 3.5. AppleScript example for adding a To Do item to iCal
tell application "iCal" to make new todo at end of calendar "Work" with properties {summary:"FIXME now"}