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