Importing XML format playlists (that you previously exported from old versions of macOS/Apple Music/iTunes) into Apple Music app
If you have playlists that do not appear, are empty or missing tracks in Apple Music on macOS Monterey, try this:
- Apple Music app, select a playlist that is in your current sidebar of playlists on your Mac. Then select top menu File>Library>Export Playlist.
- Open Finder. Navigate to /Macintosh HD/Users/<YOURUSERNAME>/Music/Music
- Right click the XML file you have just exported e.g. 80sWonders.XML. Select "Open With" then select Text Edit app
- The 12th line down, you will see this string: <key>Music Folder</key><string>file:///Users/yourname/Music/Music/Media.localized/</string>
- Highlight and cut this string (CTRL + C keys)
- Next, open a new Finder window (Finder>File>Open New Finder Window).
- In this new finder, locate the playlist that you exported from previous versions of macOS/Apple Music app (e.g. 80sWondersold.xml).
- Right click on this file, Select "Open With" and then select Text Edit app
- Again on the 12th line, you will find a string something like this: <key>Music Folder</key><string>file:///Users/yourname/Music/Music/Media.localized/</string>.
- Select this string, and replace it with the sting that you cut above (CTRL + V keys)
- In the top menu of the Text Edit app, Select File>Duplicate
- In the top menu of the Text Edit app, Select File>Save
- Enter a filename that you want the playlist to be called e.g. 80sWonders
- Make sure in the Plain Text Encoding box that Unicode UTF-8 is selected (should be the default)
- In the drop down, save that file to Macintosh HD/Users/<YOURUSERNAME>/Music/Music. If you cannot see this folder in the pop up dialogue box which appears when you select File>Save, press the little down arrow "v" next the folder field (this will expand the whole dialogue box so you can see, navigate to a select all of you folders.
- Quit the Text Edit app
- In the Apple Music app, select top menu File>Import
- In the pop up dialogue box, select the XML file you have just edited e.g.80sWonders
- You should now have that playlist with all of the songs in it that were in the previously exported version.
- If not my email address is in my profile.
iMac 27″, macOS 12.0