Changing track numbering in iTunes
After starting the Apple Music trial, a lot of my iTunes library has been messed up. I have managed to get most of the album art back but I have a lot of compilation albums that I have renumbered to change the track order. I can change this back by manually editing each track number but it will take a long time to do. Is there a way to automate this, so I can just select an arbitrary number of tracks on the album and have them numbered from one to whatever? Keith Darrow If you want to create a new track order from an existing album, I think a playlist is a better solution, since it doesn’t interfere with the existing metadata of your tracks and therefore doesn’t risk getting overwritten the next time iTunes decides the version in the cloud is canonical.
However, if you insist on arranging tracks by modifying metadata, you can use AppleScript to achieve this. In Automator, create a Service and add the Run AppleScript action to it and enter a script like this example: tell application "iTunes" set mytracks to selection set n to 1 repeat with thistrack in mytracks set track number of thistrack
to n set n to n + 1 end repeat end tell