Sometimes playlists and albums aren’t enough to keep my tunes organized. I like prefixes. They let me keep certain songs together without dividing into extra playlists.
What follows is a quick AppleScript I use to add a prefix to all items in a temporary playlist. Note that the script checks to see if each song already has the prefix. If so, it skips that song and goes on to the next. Change the playlist name and prefix as desired.
tell application "iTunes" set myPlaylist to some playlist whose name is "tmp" set prefix to "Idol5 - " set tracklist to every track of myPlaylist repeat with eachtrack in tracklist set tname to name of eachtrack set checkoff to offset of prefix in tname if (checkoff is 0) then set cname to the prefix & name of eachtrack set the name of eachtrack to cname end if end repeat end tell


tell application "iTunes"
set myPlaylist to playlist "tmp"
set prefix to "Idol5 - "
set tracklist to every track of myPlaylist
repeat with eachtrack in tracklist
set tname to name of eachtrack
if tname does not start with prefix then
set name of eachtrack to prefix & tname
end if
end repeat
end tell