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
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to