<HTML>
<HEAD>
<TITLE>Re: [iTunes] applescripts for iTunes playlists</TITLE>
</HEAD>
<BODY>
<FONT FACE="Lucida Grande, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>On 2/16/06 9:19 PM, Terry Pogue &lt;tpogue@comcast.net&gt; wrote:<BR>
<BR>
&gt; <FONT COLOR="#000098">I downloaded a nice little applescript which creates a textedit of &nbsp;all the <BR>
&gt; playlists. This is really helpful to me. I would love to be &nbsp;able to print out <BR>
&gt; a list of the tracks within a playlist. Is there an &nbsp;applescript for that?<BR>
<BR>
</FONT>Here&#8217;s a simplistic script, Terry. It asks you to choose a specific playlist and then creates a new TextEdit window with the playlist&#8217;s name and the <I>names</I> of all of its tracks. It would be easy enough to tweak it to include artists, etc, if you want that info, too. It would also be easy enough to assemble a large text file containing all playlists and their corresponding tracks.<BR>
<BR>
HTH,<BR>
<BR>
Bill<BR>
<BR>
-----------------------<BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Geneva, Verdana, Helvetica, Arial">tell <FONT COLOR="#004700">application</FONT> &quot;<FONT COLOR="#150079">iTunes</FONT>&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set <FONT COLOR="#B60000">myPlaylists</FONT> to <FONT COLOR="#004700">name</FONT> of every <FONT COLOR="#004700">playlist<BR>
</FONT> &nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set <FONT COLOR="#B60000">thisPlaylist</FONT> to <FONT COLOR="#004700">item</FONT> <FONT COLOR="#150079">1</FONT> of (<FONT COLOR="#004700">choose from list</FONT> <FONT COLOR="#B60000">myPlaylists</FONT> without <FONT COLOR="#004700">empty selection allowed</FONT> and <FONT COLOR="#004700">multiple selections allowed</FONT>)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set <FONT COLOR="#B60000">trackNames</FONT> to <FONT COLOR="#004700">name</FONT> of every <FONT COLOR="#004700">track</FONT> of <FONT COLOR="#004700">playlist</FONT> <FONT COLOR="#B60000">thisPlaylist<BR>
</FONT> &nbsp;&nbsp;&nbsp;<BR>
end tell<BR>
<BR>
set <FONT COLOR="#B60000">playlistText</FONT> to <FONT COLOR="#B60000">thisPlaylist</FONT> &amp; <FONT COLOR="#004700">return</FONT> &amp; &quot;<FONT COLOR="#150079">--------</FONT>&quot;<BR>
<BR>
repeat with <FONT COLOR="#B60000">i</FONT> from <FONT COLOR="#150079">1</FONT> to <FONT COLOR="#004700">count</FONT> <FONT COLOR="#B60000">trackNames<BR>
</FONT> &nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;set <FONT COLOR="#B60000">playlistText</FONT> to <FONT COLOR="#B60000">playlistText</FONT> &amp; <FONT COLOR="#004700">return</FONT> &amp; <FONT COLOR="#004700">item</FONT> <FONT COLOR="#B60000">i</FONT> of <FONT COLOR="#B60000">trackNames<BR>
</FONT> &nbsp;&nbsp;&nbsp;<BR>
end repeat<BR>
<BR>
tell <FONT COLOR="#004700">application</FONT> &quot;<FONT COLOR="#150079">TextEdit</FONT>&quot; to <FONT COLOR="#004700">make</FONT> <FONT COLOR="#004700">new</FONT> <FONT COLOR="#004700">document</FONT> <FONT COLOR="#004700">with properties</FONT> {<FONT COLOR="#004700">text</FONT>:<FONT COLOR="#B60000">playlistText</FONT>}</FONT></SPAN>
</BODY>
</HTML>