Create a regular playlist from an iTunes Genius Mix

Oct 08, '09 07:30:03AM

Contributed by: scooby509

This is just the absolute basics, but this AppleScript will repeatedly hit the Next Track button for you, and then add the current track to a pre-made playlist. You'll have to have the genius mix already playing, and a playlist named Genius_Mix already created before running the script.

tell application "iTunes"
  set pl to playlist "Genius_Mix" of source "Library"
  repeat with i from 1 to 30
    set t to current track
    if class of t is file track then
      set loc to (location of t) as alias
      add loc to pl
    end if  
    next track
  end repeat
end tell
I'll probably get around to making it nicer, but if you're itching for a playlist now, it should do the job.

Comments (10)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20090918161939914