Getting all Podcast Names

Here’s a nice little AppleScript I knocked up to grab all of the details of my podcasts, for the previous post:

 1     tell application "iTunes"
 2      set podcastList to {}
 3      repeat with trk in selection
 4          set thisPodcast to album of trk & " • " & artist of trk
 5          if thisPodcast is not in podcastList then
 6              set podcastList to podcastList & thisPodcast
 7          end if
 8      end repeat
 9     end tell
10     
11     set HTML to "<ul>"
12     repeat with trk in podcastList
13      set HTML to HTML & "<li>" & trk & "</li>"
14     end repeat
15     set the clipboard to HTML & "</ul>"

Hot Toddy • MindtripChillout Sessions 8 ★★

blog comments powered by Disqus