--Number Selected Tracks Sequentially --A simple applescript from Rex Pechler --http://rex.fm -- --2007 tell application "iTunes" if selection is not {} then set sel to selection set these_files to {} set numtracks to the count of sel set trackcount to 0 with timeout of 30000 seconds repeat with this_track in sel if class of this_track is file track then set trackcount to trackcount + 1 set the track number of this_track to trackcount set the track count of this_track to numtracks end if end repeat end timeout else set count to 0 end if end tell