I think I'd look into editing the iTunes Music Library.xml file directly. It's an easy to understand format.