[Pythonmac-SIG] scripting iCal

Bob Ippolito bob at redivi.com
Mon Nov 29 01:43:15 CET 2004


On Nov 28, 2004, at 7:03 PM, David Reed wrote:

> I've ran across this:
>
> http://stompstompstomp.com/weblog/technical/2004-02-05
>
> and got the examples in it to work fine.
>
> I'm now trying to write a script to just grab the events for the 
> current date. I could pull all the events and check their start date, 
> but figure there is probably an easier way.
>
> The applescript documentation includes:
> Class calendar: This class represents a calendar
> Plural form:
> 	calendars
> Elements:
> 	event by numeric index, before/after another element, as a range of 
> elements, satisfying a test
> 	todo by numeric index, before/after another element, as a range of 
> elements, satisfying a test
>
>
> but it's not clear to me how to grave events that "satisfy a test". 
> Can anyone help or point me to documentation on this?

You can't do that using gensuitemodule, you'll have to use something 
else like appscript 
<http://freespace.virgin.net/hamish.sanderson/appscript.html>.

-bob



More information about the Pythonmac-SIG mailing list