2005-10-23 11:48:09 UTC
The original Vorbis plugin didn't import the vorbis TRACKNUMBER field, so I wrote a horrible little AppleScript that ran vorbiscomment, parsed the output and set the track number in iTunes. Now that iTunes ignores the Name field as well, I've spent some time polishing it up and extending it
New features:
- Requires 10.4 Tiger, for the QuickTime File scripting addon.
- Sets track name, artist, album, track number, track count, year, comment, genre (if it can).
- Uses only Arek's QuickTime component, so you don't need to compile vorbis-tools anymore. Also, it works with any kind of QuickTime file, not just Vorbis.
- If tracknumber is in the form "x/y", it gets split into track number/track total.
- If you run it from Script Editor, it has pretty log messages telling you % completeness and each thing the script is doing.
- Always processes every file in the list,instead of randomly missing some.
Known bugs:
- Files with an eth (like a d but with a horizontal stroke) in the name get the eth replaced with "<eth>". Other accented characters come through unscathed. Presumably at some point in the process a name is being converted to MacRoman encoding, but I have no idea how or why.
- It's kinda slow, but my AppleScript-fu is not good enough to figure out how to speed things up. On my G5 1.6GHz, it took 40 minutes to process 1858 songs, most of which didn't need any updating at all.
Where to get it:
http://members.optusnet.com.au/thristian/Toys/iTunes%20Scripts/itunes%20vorbis%20metadata%20handler.scpt.zip
How to use it:
- Open iTunes, select a playlist full of files you want to process.
- Open Script Editor, then open the script file.
- In Script Editor, from the Window menu choose "Event Log History".
- In the Event Log History window, change "Log Events and Results" to "Log Nothing" (so you don't get overwhelmed by useless log info).
- Hit "Run Script".