Local Apple Music Library
I am a developer of an app that utilizes the Apple Music Library to pull track information for use in the application I am writing.
When I first started writing my app I decided to keep my Music Library on an SD card so I could easily move it between my development machine (iMac) and use it on my business laptop (MacBook Pro). However, Music being the way it is, it is bound and determined that any music library MUST be stored on the local hard drive. I have run into so many headaches where Music will suddenly try to reorganize my music and move it from the SD card to the local hard drive, subsequently breaking my app. The Music app really does have a mind of its own!
So, to alleviate the problems I am having, I decided to go another approach. I deleted the contents of my /User/{userdomain}/Music folder and then emptied the trash to ensure I was starting with a clean slate with Music on my local hard drive.
I launched the Music app and then went to preferences and then clicked on the Files option. The default "Music Media folder location" the Music app chooses is /iMacHD/Users/{userdomain}/Music/Music/Media/, so I changed it to /iMacHD/Users/{userdomain}/Music, thinking it does not need a redundant folder structure. I also checked the boxes for "Keep Music Media folder organized" and "Copy files to Music Media folder when adding to library" options.
When I imported my music from the SD card the Music app did not use my specified "Music Media folder location." It decided to put the files in /iMacHD/Users/{userdomain}/Music/Music/Media/Music. I tried again to change the "Music Media folder location" but the Music app refuses to do it that way. So, hoping that using what the Music app wants and not letting my OCD get the better of me, I decided to leave it alone, even though the "Media Folder Location" points to a higher folder in the Music apps Music Media folder location specified structure. It makes me wonder if no matter which folder you put your Music library the Music app has to have a sub folder structure of ./Music/Media/Music with the Music.library file stored in the ./Music folder?
Has anyone else experienced this? I am using macOS Catalina 10.15.6 with the supplemental update applied.
iMac Line (2012 and Later)