I have a lot of tracks in iTunes where the files are named "music-NNNN.mp3" with NNNN being the year the track was recorded. How can I use Applescript to automatically set the year tag for these files based on NNNN?
I created an AppleScript for you that will parse the filenames of any selected iTunes tracks and set the year tag accordingly.
Paste this into AppleScript Editor and run it (or save it as an application):
A few notes:
Unlike many other command line utilities for changing ID3 tags, mid3v2 supports both Unicode and ID3v2.
You can also use TriTag for changing tags based on file names or vice versa.