<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 20/10/2005, at 6:26 PM, David wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV><DIV><DIV>app('Itunes').sources['Library'].playlists['Library'].duplicate( a_track, to=a_playlist )</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>and many variations of it. But all I get is an error saying "Too many direct arguments".</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Can anyone spot what I'm doing wrong?</DIV></DIV></DIV></BLOCKQUOTE><BR></DIV><DIV>Yep, duplicate is a method of the application itself, not the playlist. You need something like:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>a_track = app('Itunes').playlists['Library'].tracks[0]</DIV><DIV>a_playlist = app('Itunes').playlists['Whatever']</DIV><DIV>app('Itunes').duplicate(a_track, to=a_playlist)</DIV><FONT class="Apple-style-span" color="#0000DD"><BR class="khtml-block-placeholder"></FONT></BODY></HTML>