Code:
tell application "iTunes"
if selection is not {} then
my addNextSong(item 1 of selection)
end if
end tell
on addNextSong(trackID)
tell application "iTunes"
set thePlaylist to playlist "Party Shuffle"
duplicate trackID to thePlaylist
end tell
end addNextSong
I found this, but i need to make it so it adds the whole selection not just one song. How would i do that?