Find total number of iCal events #

John Maisey kindly shared the following AppleScript to find the total number of events in iCal:
set myText to "Count of events in iCal's calendars." & return
tell application "iCal"
  repeat with myCal in calendars
    set myText to myText & return & (name of myCal) & ": " & (count events of myCal)
  end repeat
end tell
display dialog myText

/mac | Sep 01, 2010


Subscribe or visit the archives.