[Pythonmac-SIG] Adding a track to an iTunes playlist (appscript)
arsptr at optusnet.com.au
Thu Oct 20 11:32:18 CEST 2005
On 20/10/2005, at 6:26 PM, David wrote:
> ( a_track, to=a_playlist )
> and many variations of it. But all I get is an error saying "Too
> many direct arguments".
> Can anyone spot what I'm doing wrong?
Yep, duplicate is a method of the application itself, not the
playlist. You need something like:
a_track = app('Itunes').playlists['Library'].tracks
a_playlist = app('Itunes').playlists['Whatever']
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pythonmac-SIG