Re: [Pythonmac-SIG] appscript with todos in iCal seams very slow

2006-08-09 Thread Marcin Komorowski
Has,Thank you.  Unfortunately, I have a list of UIDs for the todos I want to modify, so I think the best I can do is:for uid in uid_list:    todo = [ t for t in app('iCal').calendars.todos.filter( its.uid == uid ).get() if t != k.MissingValue ][0]    todo.stamp_date.set( datetime.datetime.today() )

Re: [Pythonmac-SIG] appscript with todos in iCal seams very slow

2006-08-08 Thread has
On 8 Aug 2006, at 01:49, Marcin Komorowski wrote: > I guess when I get to updating individual values in selected todos > records, I will have to use a relatively slow request-per-update > method. Is there a trick to update a field of a todo with a given > uid in a single request? You can s

Re: [Pythonmac-SIG] appscript with todos in iCal seams very slow

2006-08-07 Thread Marcin Komorowski
Thanks Has, this definitely did the trick. I guess when I get to updating individual values in selected todos records, I will have to use a relatively slow request-per-update method. Is there a trick to update a field of a todo with a given uid in a single request? Thanks, Marcin On 6-Aug

Re: [Pythonmac-SIG] appscript with todos in iCal seams very slow

2006-08-06 Thread has
Marcin Komorowski wrote: > I am trying to generate a python internal structure (a dictionary of > dictionaries) with a copy of all todo data from iCal. I got it to > work using the following code: > [...] > The problem is that this appears to execute painstakingly slowly. Apple event IPC is fair

Re: [Pythonmac-SIG] appscript with todos in iCal seams very slow

2006-08-06 Thread Henning Hraban Ramm
Am 2006-08-06 um 16:57 schrieb Marcin Komorowski: > I am trying to generate a python internal structure (a dictionary > of dictionaries) with a copy of all todo data from iCal. I got it > to work using the following code: > > The problem is that this appears to execute painstakingly slowly.

[Pythonmac-SIG] appscript with todos in iCal seams very slow

2006-08-06 Thread Marcin Komorowski
Hey All,I am trying to generate a python internal structure (a dictionary of dictionaries) with a copy of all todo data from iCal.  I got it to work using the following code:#!/usr/bin/env /usr/bin/pythonwfrom appscript import *from sys import stdoutappCal = app( 'iCal' )todos = appCal.calendars.fi