Add currently-playing track an iPhone/iPod playlist
This AppleScript will add the current track you are playing to a play list (currently named street) on your iPhone (or iPod). It will also make a backup of this added track to a playlist on the iTunes local playlists (also named street). The script also checks first if a song exists on the playlist, so as to not duplicate any tracks.
property playlistname : "street" tell application "iTunes" repeat with s in sources if (kind of s is iPod) then set the_ipod to s end repeat set doit to true set idx to (count tracks of playlist playlistname of the_ipod) repeat with i from 1 to idx set n to track i of playlist playlistname of the_ipod set n to (name of n as string) & (artist of n as string) & (album of n as string) set m to (name of current track as string...