Cowell Computer Consulting

Find Empty iCal Calendars

I recently tried a piece of software called 'Contactizer'. It didn't do what I wanted it to, so I uninstalled it. During its stay on my computer it created about 10 additional iCal calendars, and put a few events in one or two of them. So, I needed a way to determine if a calendar was empty before I deleted it.

Here's a little applescript that will tell you the number of events in each calendar.

tell application "iCal"
    repeat with mycal in every calendar
        get name of mycal
        get count of every event in mycal
    end repeat
end tell

Posted by Luke Cowell on September 27, 2008 at 07:58 AM