[Pythonmac-SIG] appscript: selecting many songs in iTunes

Niko Matsakis niko at alum.mit.edu
Mon Jan 16 15:30:58 CET 2006


>
>> To  that end, it seems like what I want to do is something like:
>>
>> 		allsongs.filter (its.database_ID in songdbids]).delete ()
>>
>> except I don't think that the 'in' operator works,
>
> See ch.8 of the appscript manual for a list of supported comparison  
> forms. Not all Python operators were amenable to overloading; in  
> this case you need to use 'its.database_ID.isin(songdbids)'.

I'll give this a try, thanks!   Sorry, I did try looking through the  
docs for a list precisely like the one you pointed me at, but somehow  
missed it.


Niko



More information about the Pythonmac-SIG mailing list