List Events and Todos of Calendars
I like how Applescript allows for quick solutions to what otherwise would be tricky problems to solve. Take the total number of events in an iCal calendar, this is a question asked recently on Apple Discussions. Counting them by hand would be a bore (especially with 40,000), but with Applescript it's as easy as:
(gives the result of 1279 currently for me.)
Simple, but what is in your 'home' calendar? How about the other 20 calendars you have? Let alone todos.
Here is a short Applescript for you to try. It displays the total of events and todos for each iCal calendar. The result can be copied to the clipboard.
You can download this script complied as an application here.
-- John Maisey -- www.nhoj.co.uk
-- 19 June 2010 & 13 July 2010
set myText to "Count of events/todos in iCal's calendars." & return
tell application "iCal"
repeat with myCal in calendars
set myText to myText & return & (name of myCal) & return & tab & (count events of myCal) & " events & " & (count todos of myCal) & " todos"
end repeat
end tell
display dialog myText buttons {"Copy to clipboard", "OK"} default button 2
if button returned of result is "Copy to clipboard" then
set the clipboard to myText
end if
Suggestions, corrections, improvements? Comment below.
Comments
Dan (not verified)
8 December, 2012 - 18:34
Permalink
John, Im looking for an app
John,
Im looking for an app or script that would count appointments listed each day, week, month, year for specific calendars on iCal.
John M
11 December, 2012 - 13:39
Permalink
Hi Dan, That should not be
Hi Dan,
That should not be too tricky, although some more details about what you are looking for would be needed. Send me a message by the contact page here.
Pages