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 25, 2020 9:58 AM in response to venneman

I did that for a song. I found a duplicate that had a 1.m4a, moved it, deleted it from the library. Then I ran the duplicate pointing to the right version. There's no reason to keep the 1.m4a version I moved to my desktop. Doing this a few thousand times will get rid of the 1. duplicates.


I can wait to do that until I have resolved the /music/ /music/music/ issue though. That appears to be the big confusion for me.

May 25, 2020 6:34 PM in response to howardfromlafayette

As you have noted using the option to consolidate the library will mark any missing tracks with an exclamation mark. The script checks the current location of each track and only attempts to repair those that are broken. You should choose the folder ~/Music/Music when running the script to point it at the folder that contains your artist folders for the items that are broken in your library.


tt2

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

I've updated the script to cope better with content that is in the cloud, and improved the results dialog a little bit too. One pass should be able to fix many tracks that are in the /Users/HBrazee/Music/ folder. A second pass could find those in the /Users/HBrazee/Music/Music folder if you choose a different start point, or I can rejig the script so it can search both potential locations in one pass.


The last item that is/was in .Trash would be a file you've deleted. If it exists in Time Machine it would presumably be at /Users/HBrazee/Music/Compilations/Romanza (20th Anniversary Edition _ Deluxe)/01 *** Te Partirò 1.m4p.


tt2

May 27, 2020 3:16 PM in response to turingtest2

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/.


I 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.


May 18, 2020 3:54 PM in response to Teddy_B

Yeah, I've tried most of those. Here's a screen print showing what I have:

Notice that I have copies of the songs that include blue stars and play counts. Those are the versions on Apple Music. But the (!) indicates that if I search for those songs, they won't be found. I can find the songs, but that is tedious with as many as I have. Very tedious. Also, I see that there are two versions of 1812 Overture in the "Sample Surround" folder. In this case, the one I want to keep is the original, but sometimes it isn't. It looks like I have hours and hours of work ahead of me to make sure the right version is pointing to the right song and others are deleted.

May 19, 2020 6:35 AM in response to turingtest2

Yes, I have Apple Music.


It’s interesting that the exclamation marks disappeared after I rebooted.  Clicking on Library/Organize Library gave me the option to Consolidate Files, but not to Reorganize the files in Music.  Doing this got the exclamation marks back.


I went to a smaller playlist, right-clicked a song, and was not given an option to “Show in Finder”. I used a utility to find that song, and found it in music/Apple Music.  OK, I have a couple of hundred songs which I only have because of Apple Music, out of my 13,477 songs that my Music App shows.  


I suspect that maybe 5-6 thousand of those songs are duplicates with the exclamation marks.  I don’t see a way to sort my songs into exclamation mark order.


Changing thousands of songs one at a time won’t be an easy task.


I picked a song, “The 59th Street Bridge Song”.  The first copy had the double cloud icon, and it pointed to where it belong in the finder.  The second copy did not give me an option of finding it.  So I told it to remove download.  Then it had the download cloud icon.  I clicked on it.  I could show it in finder.


Funny thing is, the “show in finder” for these two copies of the song are confusing.  The newly downloaded song is in music\music\Simon & Garfunkel\Simon & Garfunkel’s Greatest Hits\ in a directory by itself.  Cloud status is “uploaded”.  So I deleted that downloaded song altogether.


Trouble is, the remaining version shows that I played it once, not 77 times.  It lost my meta-data.


Looking at various songs, I see cloud status of “Duplicate”, “Uploaded”, “Waiting”, “Matched”, & “Error”. Sorting by cloud status is not the same as sorting by exclamation mark.


So it’s looking that I need to go through my songs, select 5-6 thousands one-by-one that have exclamation points, and then delete those songs, starting over with meta-data?!?!  This looks like a candidate for Doug’s AppleScripts, except I really, really want to keep my meta-data with the copy of the song that I keep.

May 24, 2020 8:23 AM in response to turingtest2

"List MIA" demo mode found 5846 files as unavailable/inaccessible. I picked one randomly. On my Music app, I see the version with a (!) is the version that has a play count. It appears that if I upgraded "List MIA", and ran it, I would lose that play-count (and maybe other meta data.


I haven't been able to find an e-mail for Doug. Maybe I need a different script.

May 24, 2020 8:38 AM in response to howardfromlafayette

With those two songs what do you see for them for the location under Get Info > File tab? The full and exact path if you can. Replace your user name with <User> if needed. You could potentially right-click and remove download for the first song, then right-click and add to library for the second one. That might assimilate the accessible track into the cloud library while preserving the play count.


tt2

May 24, 2020 8:48 AM in response to turingtest2

I've been trying that for a few days, but it is a slow, slow process. Sometimes I end up with 2 entries pointing to the same song the same place, and sometimes I'm left with a song.mp3 and a song1.mp3. But I think those may go away when I consolidate the library again.


Doug's utility found 5846 files. So I just pointed a (!) song to the correct place and ran it again. It found the same number.

May 24, 2020 7:39 PM in response to turingtest2

When I download a song from iCloud it doesn't go where I want.

For instance, I have a song that is duplicated. I looked at the one copy which is in:

/Users/HBrazee/Music/Compilations/Doo Wop's Golden Age (1957-1959)/3-15 16 Candles.m4a

I right-click the (!) one, remove the download, then download again. It gets downloaded here:

/Users/HBrazee/Music/Music/Compilations/Doo Wop's Golden Age (1957-1959)/3-15 16 Candles.m4a


There is just the one song in that folder, while the rest of the album is in the other location.

In my Music/Preferences/Files, I see my Music Media Location is /Macintosh HD/Users/HBrazee/Music


That other music folder messes me up.

May 25, 2020 6:36 AM in response to turingtest2

When I try to Get Song Info with an (!) song, I get a pop-up asking me "The song “You're Nobody Until Somebody Loves You” could not be used because the original file could not be found. Would you like to locate it?". I didn't realize that if I cancelled, it would show the Get Info data anyway!


file:///Users/HBrazee/Music/Music/Ray Charles/The Essential Collection/14 What'd I Say 1.m4a

/Users/HBrazee/Music/Ray Charles/The Essential Collection/14 What'd I Say.m4a


Interesting that the (!) version included the prefix "file://" that is not in the other version.


May 25, 2020 8:15 AM in response to turingtest2

Checking random songs, I see a bunch of non (!) duplicates in the same /music/ locations with both 1.m4a and .m4a versions.

I also have some duplicate artist folders that have songs split between them.


I have a "Music/Apple Music" folder and a "Music/Music" folder. I have folders for Nat King Cole and for Nat "King" Cole (I should be able to fix that easily). I think that some of the albums are split between Music and Music/Music.


I think you're saying none of my <[Album]Artist> folders should be in /music/ but they all should be in /music/music. Is that correct? (Odd). Should I merge the folders that are in the wrong place to the right place?

May 25, 2020 6:17 PM in response to turingtest2

I have copied the Apple Script and saved it into my Applications file.

I have a question. Do I have to just select songs with broken links, or can I select a bunch of songs?


(It will be hard to select all of the songs with broken links as I don't see a way to sort them and there are thousands). The only way I can even see that some songs have broken links is to select them or to organize my library.

(I'm afraid my ignorance may have created most of my problem to begin with, so I'm being very careful now).

May 25, 2020 8:31 PM in response to howardfromlafayette

Interesting, I tried various files by selecting a song and copying he path to its song. Then I run the script and it processes 1 song but updates 0. I tried with a song with a 1.mp3 and its corresponding song, and I tried a song that is the same title as a (!) song, with the same result.


If I select the path of a (!) song, it wants me to "Select the media folder you wish to find missing tracks in". So I looked for where it thinks it is, and got a file not found result. I tried again where the song really is and selected its folder, but the file wasn't found. I'm guessing wrong about what I'm supposed to do, sorry.

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.