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

February 12 2014

15:52
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
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!

Schweinderl