Aug 06, '09 07:30:03AM • Contributed by: MacTipper
tell application "iTunes"
activate
set the_song to the selection
play item 1 of the selection
end tell
tell application "System Events"
click button 3 of scroll area 1 of window "iTunes" of application process "iTunes"
end tell
The script will use the currently selected song (Command-L will select the currently-playing song) as the basis for your genius playlist. By combining this script with your favorite keyboard macro program (mine is Spark), you can activate Genius with a simple keyboard shortcut (I used Cmd-Option-G). This was originally posted in this entry on my blog.
