Re: [Pythonmac-SIG] appscript + iPhoto problem

2005-07-13 Thread Gábor Farkas
has wrote: > Gábor Farkas wrote: > > > In general, new elements are created using the 'make' command, so try > something like: > > iphoto = appscript.app('iPhoto') > iphoto.photos[1].keywords.end.make(new=k.keyword, with_properties={k.name: > 'some name'}) > well, i want to set an already ex

Re: [Pythonmac-SIG] appscript + iPhoto problem

2005-07-13 Thread has
Gábor Farkas wrote: >>what i want to achieve is the following. >> >>i want to find a photo in iphoto (i can do that), >>and then assign some keywords to it. >[...] >ok, now i know more ;) > >i can use: > >iphoto = appscript.app('iPhoto') >photos = iphoto.photos.get() >photo = photos[0] >photo.titl

Re: [Pythonmac-SIG] appscript + iPhoto problem

2005-07-13 Thread gabor
Gábor Farkas wrote: > hi, > > what i want to achieve is the following. > > i want to find a photo in iphoto (i can do that), > and then assign some keywords to it. > > i can find the photo with: > > iphoto = appscript.app('iPhoto') > photos = iphoto.photos() > > and then i find my photo in 'ph

[Pythonmac-SIG] appscript + iPhoto problem

2005-07-12 Thread Gábor Farkas
hi, what i want to achieve is the following. i want to find a photo in iphoto (i can do that), and then assign some keywords to it. i can find the photo with: iphoto = appscript.app('iPhoto') photos = iphoto.photos() and then i find my photo in 'photos'. and i can also list it's keywords. but