[Pythonmac-SIG] appscript: selecting many songs in iTunes
Niko Matsakis
niko at alum.mit.edu
Tue Jan 17 14:15:58 CET 2006
>> and it looks like I'm missing a get() in there in any case.
>
> Depends what you're trying to get. iTunes scripting interface is
> pretty extensive, but a lot of the implementation is rather crude
> and many commands won't work on more than one object at a time. So
> the above might work as-is, but it probably won't, in which case
> you need to get a list of track references and tell iTunes to
> delete each individually:
Okay, so this error is probably iTunes' fault?
> appscript.specifier.CommandError: Application Error -10014: Handler
> only handles single objects.
> Failed command: app(u'/Applications/iTunes.app').sources
> ['Library'].playlists['Library'].tracks.filter(its.database_ID.isin
> ([7253, 7255, 7257, 7259, 7261, 7263, 7265, 7267, 7269, 7271, 7273,
> 7275, 7277])).get()
Niko
More information about the Pythonmac-SIG
mailing list