Extract Apple Music song data (ie play count) from an XML File?
Brief background - I lost my music library when I was moving files across hard drives (stupid!). All of my music became greyed out and unplayable.
The most devastating part about this is losing the data attached to the songs (play count, date added, etc...) since most of my playlists are based on this data (smart playlists), I would love to get this back. I forgot where/when I got it, but I have an XML file with ALL playlists and ALL song data (see image below).
Does anyone have any advice how to merge my current library with data?? I have background in AppleScript, so im thinking about writing a program:
- goes through songs in XML file and checks if it exists in my current library (not sure if the track IDs will be the same between current Apple Music and this file...)
- if it doesn't, move on to next
- if it does, update date added and combine things like play count:
- play count = xml file play count + current play count
going through the XML file is the issue.
advice, programs, tutorials how to extract Apple Music data from XML file, ANYTHING...
I started writing a script to extract and store the info into an easier file to work with, but its honestly making my head hurt....
Thanks in advance!!
MacBook Pro 13″, macOS 12.6