those scripts worked fine here. at least for tracks ratings and playcounts.
thanks for sharing this, even if it did not work for you (or did it?)
only things i had to add manually was mood, occasion, quality and speed. simply did this by creating auto playlists for each in MM, exporting them as .m3u, importing in MB, selecting all files and mass tagging them.
just for exporting once, it makes sense to change both Customize options in the script:
const ENABLE_TIMER = false' change to false to prevent automatic exporting once per hour
const QUERY_FOLDER = true' set tp true to be asked each time where to save the iTunes xml file
also i placed it in \Scripts\ , not in \Scripts\auto\ and set
FileName=Export to iTunes library-xml.vbs
according to the different path in the .ini
then run from 'create report' menu in MM