[Pythonmac-SIG] Adding a track to an iTunes playlist (appscript)
David
daavidb at gmail.com
Thu Oct 20 10:26:10 CEST 2005
I'm trying to translate the following applescript into python:
tell application "iTunes"
tell source "Library"
tell playlist "Library"
** a bunch of code for selecting a_track and a_playlist
duplicate a_track to a_playlist
end tell
end tell
end tell
What I've tried is:
app('Itunes').sources['Library'].playlists['Library'].duplicate
( 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?
Thanks in advance,
/David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20051020/8f0f3537/attachment.html
More information about the Pythonmac-SIG
mailing list