Re: [Pythonmac-SIG] quick tutorial on aemreceive

2008-07-27 Thread Nicholas Riley
On Sun, Jul 27, 2008 at 07:46:02PM -0400, Rand Dvorak wrote: > > I have an app that I created and put into an app wrapper using py2app, > now need for it to be activated with a folder action script.All my > research so far has pointed me to the aemreceive module, but I have > not idea wh

[Pythonmac-SIG] quick tutorial on aemreceive

2008-07-27 Thread Rand Dvorak
I have an app that I created and put into an app wrapper using py2app, now need for it to be activated with a folder action script.All my research so far has pointed me to the aemreceive module, but I have not idea what to use for for the code for the second argument to installeventha

Re: [Pythonmac-SIG] iTunes query

2008-07-27 Thread Nicholas Riley
On Sun, Jul 27, 2008 at 01:50:52PM -0400, David Blackman wrote: > I'm trying to figure out how AOEM queries work on iTunes, the code I'm > trying looks like: > >for track in > library.tracks[appscript.its.name().encode("utf-8").find("Sun")]: > > (I'm trying to find all the tracks in my librar

[Pythonmac-SIG] iTunes query

2008-07-27 Thread David Blackman
I'm trying to figure out how AOEM queries work on iTunes, the code I'm trying looks like: for track in library.tracks[appscript.its.name().encode("utf-8").find("Sun")]: (I'm trying to find all the tracks in my library with the string "Sun" in the title) and the error I'm getting is: Tracebac