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

# of total events in iCal?

Hi,

Does anyone know if its possible to tell how many events one has in iCal? I'm deleting obscene amounts of duplicates before resyncing to mobile me and would like to see how much "better" the deletions are making things.

Thanks!

joanne

P.S. At one point a Mobile Me rep told me there were over 40,000 events (over a 10 yr + period - including duplicates).

MacBook, Mac OS X (10.6.4)

Posted on Jun 18, 2010 8:33 PM

Reply
Question marked as Best reply

Posted on Jun 19, 2010 12:42 AM

Hi Joanne,

Run the applescript below. Open Applescript Editor (in Applications > Utilities), and copy the text below into the window and press 'run'.

Best wishes

John M

-- John Maisey -- www.nhoj.co.uk -- 19 June 2010
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

4 replies
Question marked as Best reply

Jun 19, 2010 12:42 AM in response to Joanne Davis1

Hi Joanne,

Run the applescript below. Open Applescript Editor (in Applications > Utilities), and copy the text below into the window and press 'run'.

Best wishes

John M

-- John Maisey -- www.nhoj.co.uk -- 19 June 2010
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

Jun 19, 2010 1:53 AM in response to Joanne Davis1

I should also mention this bit of software which I wrote to try and help with this sort of problem.
http://www.nhoj.co.uk/icaldupedeleter

Best wishes

John M

<hr />As I sell software on my site and ask for donations, the Apple Discussions Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

Jun 19, 2010 4:04 PM in response to Joanne Davis1

Hi Joanne,

If the duplicates are not disappearing I suggest you reset your MobileMe data, then reset your local sync history and then refresh you iCal data by exporting as an iCal archive then restoring from that archive. If you then still have duplicates run iCal Dupe Deleter again.

Please take a look at these three links.

http://support.apple.com/kb/HT1497 - MobileMe: How to reset sync data
http://support.apple.com/kb/ts1627 - Mac OS X v10.5, v10.6: Resetting the SyncServices folder
http://docs.info.apple.com/article.html?path=iCal/4.0/en/9889.html - Backing up or restoring calendars

Let us know how it goes.

Best wishes

John M

# of total events in iCal?

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