Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
15:52

Creating a countdown calendar in iCal

tell application 'iCal' tell calendar 'Studio Countdown' set theDate to date 'Thursday, October 4, 2012 12:00:00 AM' set daysUntilShow to 1 repeat while theDate is greater than or equal to ((current date) - (1 * days)) make new event at end with properties {description:'', summary:'T-' & (daysUntilShow as string), location:'', start date:theDate, allday event:true} set theDate to theDate - (1 * days) set daysUntilShow to daysUntilShow + 1 end repeat end tell end tell
Tags: ical osx

Don't be the product, buy the product!

Schweinderl