[Pythonmac-SIG] Scripting iCal :: getting the events of the day?
Israel C. Evans
israel at sandlotgames.com
Wed Jul 7 03:27:14 CEST 2004
hello good folks.
I've recently, under the direction of the wonderful suggestion I
received on this list, begun to use appscript to script iCal. One of
my main goals with doing so is to extract all the events that happen to
occur on any given day. This is turning out to be quite difficult for
it seems that the osa dictionary for iCal offers no methods for
retrieving said events. Each event has properties which include useful
things like startdate and enddate as well as recur which has the ical
string of recurrence rules. It's easy to get an event based on the
start date or end date, but parsing the diverse and sundry possible
combinations of recurrence rules leaves me where I left attempting to
parse the .ics manually... lost in the forest.
I've been able to activate iCal, move to a particular day and change
the view to day view so that I can see the events of that day. If
there was a way to select the events "visually" (i.e. select all events
visible in current view), then I might be onto something but so far, I
haven't found any way to do that.
If any of you wise and wonderful people out there have any tips, hints
or rude limericks that could help me figure this out, I would be most
grateful.
Thanks.
~Israel~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1302 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040706/7146ae2d/attachment.bin
More information about the Pythonmac-SIG
mailing list