Can I change the location of a song in Catalina Music?

Is it possible to tell my songs in Catalina's Music app the correct location if it has a wrong location? I have some songs copied to wrong directories. The original songs are where they belong, but the Music App sees some songs in a folder it created weirdly elsewhere.


Also, I have some songs that point to the a copied song instead of the original. I'd like to get rid of song1.m4a, but the music app is pointing there instead of the song.m4a in the same folder.



iMac Line (2012 and Later)

Posted on May 17, 2020 6:46 PM

Reply
Question marked as Top-ranking reply

Posted on May 27, 2020 12:39 AM

How big is the library? How much free space do you have? If possible you would reset the media folder to /Users/HBrazee/Music/Music/Media, use File > Library > Organize Library > Consolidate Files to copy in everything, then delete all of the artist folders that are within /Users/HBrazee/Music/ but not in /Users/HBrazee/Music/Music/Media.


In a vanilla Catalina install ~/Music contains a single folder called Music, which in turn contains the only the package Music Library.musiclibrary and a folder called Media. All music connected to the library is inside Media.


tt2

Similar questions

54 replies

May 18, 2020 11:15 AM in response to howardfromlafayette

Hello Howard,


Thank you for using Apple Support Communities! I understand that you'd like to correct the location where certain songs are stored on your Mac running macOS Catalina. The path for some music files also point to a copy of the song, instead of the original file. I would be happy to help with next steps to correct this.


The "Change where imported files are stored" section in the resource below will walk you through how to change the location for the songs. You may also want to follow the additional steps to consolidate your files in the Music folder after:


Change where your music files are stored on Mac - Apple Support


To find and remove duplicates of a song, follow these steps:


Find items and duplicates in Music on Mac - Apple Support


Cheers!

May 19, 2020 4:18 AM in response to howardfromlafayette

Hi, you've got a couple of things going on here, broken links to tracks, duplicates in the library, and in the media folder. I assume from the icons that you've also got an Apple Music or iTunes Match subscription. One way of fixing the tracks that show with an exclamation mark is to right-click and use the remove download option. You can then either reimport your locally stored copy or download from the cloud. Doing this should preserve your play counts and ratings. Once every locally stored file is connected to the library you should have some that are marked as duplicates - see Identify cloud status icons in your music library on your Mac or PC - Apple Support. You should be able to sort by status and delete the duplicates along with their underlying files in the media folder. Finally turning keep organized off and on again should rename any files in your media folder that have a trailing 1 in their file name. Test the process with a single album's worth of tracks (remove downloads for broken links, import local files, eliminate maked duplicates, etc.) Assuming that behaves as I've described repeat with the rest of the library.


See also https://dougscripts.com/itunes/index.php - List MIA's, Super Remove Dead Tracks, Media Folder Files Not Added and similar scripts might prove useful when cleaning up the library. As always, start with a backup.


tt2

May 25, 2020 9:24 AM in response to howardfromlafayette

Really your media folder should be set to ~/Music/Music/Media and all of your artist folders ought to be in ~/Music/Music/Media/Music although making things work where there are is probably the best way to start. macOS will normally replace folders rather than merging them so moving things around by hand might make matters worse rather than better.


DRM protected Apple Music content from the Apple Music service ends up in <Media Folder>/Apple Music.


tt2

May 25, 2020 10:38 AM in response to howardfromlafayette

howardfromlafayette wrote:

So I should change the default in Music/Preferences/Files from /Macintosh HD/Users/HBrazee/Music to ~/Music/Music/Media ???

Possibly, although that might be premature right now.

Then Organize Files and see if all of my songs get moved to ~/Music/Music/Media/Music ?

Organize files only works on what is currently connected and inside the designated media folder. Consolidate files only works on what is currently connected and outside the media folder. You need to fix the broken links.


Leave it with me for a few hours and I'll see if I can cook up a script.


tt2

May 25, 2020 5:19 PM in response to turingtest2

See FixLinks - an AppleScript to repair broken links in Music - Apple Community for the script. I've tested it by adding some tracks into an empty test library, copying the contents of the media folder to a higher folder, deleting what is in the media folder and emptying the trash, then selecting the tracks in Music, running the script, and pointing it at my higher level folder where the artist and compilations folders are. It should correctly predict the locations for a variety of media kinds, deals with missing artist or album values, and should make the same character substitutions that Music and iTunes do for

/ ? < > \ : * | " to underscore. MPEG-4 video can be linked if stored with either .mp4 or .m4v file extension and tracks with a trailing " 1" in the filename can be linked.


Test with a small sample to begin with, then try the rest if successful. If it fails to locate some of your broken content please supply some examples of the true path and the failed guess.


tt2

May 26, 2020 6:10 AM in response to turingtest2

OK, here's what I found. I misunderstood how to select songs before. This time I found a selection of songs with some variations. "For What It's Worth" had a 1.mp3 and a regular .mp3. "For You" had both songs with greyed out stars. "For Your Love" had greyed out stars and blue stars. When I ran it against "For What It's Worth" I did not get a finder menu. With the other songs I got the finder pointing to Music, which I choose.

Hmm, I didn't screen print enough. It did not change anything.


So none of these songs have the (!) anymore. I suppose that if I selected all of my songs, that will be eliminated.

I then selected the two changed songs and deleted them from library, but keeping the files.


I suspect it would be safe to select a thousand songs at a time that way.


The songs like this will be harder to discover:


In this case, it's the 1.mp3 that has greyed out stars, whatever that means. Oh, and "For You" still has greyed out stars.


Thanks for you work!!!

May 26, 2020 10:23 AM in response to turingtest2

I found it. It's in music/music


Note, that doesn't have the whole album, and it has a duplicate 2.m4a.

There's another song in music/music/Kathryn Grayson/Show Boat (And other performers as well).


I changed my view settings and did a run with before and after pictures:


That's weird, it's looking for file:///Users/HBrazee/.Trash/01 *** Te Partirò 1.m4p I don't know where that used to be to restore from Time Machine. So it's looking like I should try selecting everything from "Only Downloaded Music", and run your script. Someday I will need to figure out why those showboat songs are separated.

May 27, 2020 5:09 PM in response to howardfromlafayette

howardfromlafayette wrote:

I used the menu Music > Preferences > Files > Reset. That didn't take long, but I am not finding any change. There are albums in /music/ that are not in /music/music/ There is a /music/media which only contains an empty folder called "Automatically Add to Music.localized". There is not a /music/music/music media file.

My "Music Library.musiclibrary" is in /music/.


OK, that is a misunderstanding on my part. It puts your library one layer higher than it would normally be, although in principle in the right shape.


then tried File > Library > Organize Library > Consolidate Files. I checked both "Consolidate files" and "Reorganize the files in the folder "Media", which has been greyed out in the past. This process took a couple of minutes.

Now it looks as though the albums from /music/music/ are now in /music/media/, although the first album that I looked at now has a 1.m4a duplicate that it didn't have before.

But none of the albums from /music/ are there.


OK, now I'm confused. Have you resolved all the broken links yet? Is there content in your media folder that isn't connected to the library? You might still get the odd "* 1.,4a" file if there are unresolved duplicates.


tt2

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can I change the location of a song in Catalina Music?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.