Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Count the number of entries per calendar

Wondering if there is any way to know how many entries I have in a specific calendar.
Would like to be able to delete the empty ones.
Thanks!

Imac Intel, Mac OS X (10.5), Intel Core 2 Duo

Posted on Mar 22, 2009 10:43 AM

Reply
5 replies

Mar 22, 2009 11:17 AM in response to Y. Knot

Try this in Script Editor:

User uploaded fileAK

click here to open this script in your editor <pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iCal"
repeat with ThisCal in calendars
set EventCount to count of events of ThisCal
set ToDoCount to count of todos of ThisCal
display dialog (name of ThisCal & " - Events: " & EventCount & " ToDos: " & ToDoCount)
end repeat
end tell</pre>

Count the number of entries per calendar

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.