Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Management of the location of songs in iTunes Mac

Hello everyone, I just made a fantastic new discovery: when I drag a song into the iTunes window, regardless of the Preferences chosen, the song will go into a "music" folder, rather than surreptitiously going to store nicely in the artist's folder already present in my base folder. Same when I have to search for a song that has lost its link. In addition, impossible to register as before additional information in the tag of the piece: it will not be found in the same piece, but I discover on closer inspection, that are in the same folder: the piece of original plus a copy of the song with the addition I made!!! Morality, I have already evacuated, ONE AT A TIME (sic!) 2 T of duplicates, while pieces continue to be added to this famous 'music' folder.
I've been in a divorce from iTunes for two ages now and of course no one on the hotline seems to know about any of this, so any observations haven't been escalated to the devs, the problems persist, and worse, they're getting worse . How do you do, those like me who have to go through the throes of this program which should be our beloved Apple's best ever?
Thank you for your attention and all the best.


38 replies

Hi David,


This is a user to user support forum. I cannot connect you with anyone at Apple, but I'd like to think I have a deep understanding of iTunes and Music, and how to resolve various issues with them such as reorganizing the media folder, repairing broken links, deduplicating, etc. Because I help here in my free time it is much easier to work by exchange of written posts rather than get involved in real time conversations.


Perhaps if we start by focusing on this issue of songs going into the extra Music folder when you add them to the library first. This should be a fairly easy fix. Check under Music > Preferences > Files to see what the path is to your active media folder, close Music, open that folder in Finder, enable hidden files with Cmd+Shift+. then open .Media Preferences.plist with TextEdit and change the integer value inside from 1 to 0. Save and close the file, then launch Music. New additions to your library should now go to <Media Folder>/<Artist>/<Album> instead of <Media Folder>/Music/<Artist>/<Album>. You can rearrange anything connected to the library by turning the Keep organized option off and then on again. Making this change may potentially fix some of your broken links.


tt2

teoraim wrote:

okay thank you very much, the problem of the trash seems now to be fixed, however the new files will always be housed in this new MUSIC folder and not in their respective place. I would very much like to find a solution because I would also have to start relocating all my files that have lost their links, more than 50,000…


The "missing file" issue with exclamation marks happens if the file is no longer where iTunes or Music expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, the drive it lives on has had a name change, or you've moved a non-portable library to a different path (see Make a split library portable for details). It is also possible that iTunes or Music have changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place, or that you've been too aggressive when deleting duplicates at some point.


Select a track with an exclamation mark, use Cmd-I to get Song Info, then click No when asked to try to locate the track. Look on the file tab for the location the library thinks the file should be. Now take a look around your hard drives. Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive label has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue*. I can explain further if that is the case. If everything is where it is supposed to be try Repair security permissions for iTunes for Mac - Apple Community.


* The layout issue with or without an additional Music subfolder is the thing I thought we tackled back here.


In some cases the library may be able to repair itself if you go through the same steps with Get Info, or when playing a track, but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" I think it expects to find the tracks in the same artist & album layout they were in previously, with one systematic change to the path.


If you want me to try to provide specific advice please post back the following details:

  1. The location of the media folder under iTunes|Music > Preferences > Advanced
  2. The location of a sample missing track shown under Song Info > File > Location that begins file://
  3. The true path to the file whose details you gave in 2



See also FixLinks - an AppleScript to repair broken links in Music - Apple Community.



tt2

Let us start by making your post legible.


teoraim wrote:

Hello everyone, I just made a fantastic new discovery: when I drag a song into the iTunes window, regardless of the Preferences chosen, the song will go into a "music" folder, rather than surreptitiously going to store nicely in the artist's folder already present in my base folder. Same when I have to search for a song that has lost its link. In addition, impossible to register as before additional information in the tag of the piece: it will not be found in the same piece, but I discover on closer inspection, that are in the same folder: the piece of original plus a copy of the song with the addition I made!!! Morality, I have already evacuated, ONE AT A TIME (sic!) 2 T of duplicates, while pieces continue to be added to this famous 'music' folder.

I've been in a divorce from iTunes for two ages now and of course no one on the hotline seems to know about any of this, so any observations haven't been escalated to the devs, the problems persist, and worse, they're getting worse . How do you do, those like me who have to go through the throes of this program which should be our beloved Apple's best ever?

Thank you for your attention and all the best.


OK, so some of your content is going into your designated media folder, and some is going into a Music subfolder within that media folder, if I understand you correctly. Given you are running macOS 12.6 the app in question is called Music rather than iTunes. See Managing your Mac media libraries - Apple Community and in particular the section on iTunes Media Organization.



See this post Music File - Apple Community on fixing broken links and Duplicate songs in iTunes/Music - Apple Community for advice on duplicates.



tt2

These are not problems, just settings:

Music > Settings > files

Either elect to copy or not files to the media folder. If you elect not to do so, the music will appear throughout your device as linked files. If you copy it, you can then delete music outside of the media folder.

I wonder if you need to empty the trash, and reset the media folder in Music preferences. Make sure that your content is backed up first.


tt2

Great. Now in Finder browse to the folder /Musique/Music/Music, and look for the hidden file .Media Preferences.plist. You may need to use Shift+Cmd+. to show/hide hidden files. Once you have found the file you should be able to open it with TextEdit (a standard Mac application) or some other text editor. The contents will look a bit like this:


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>GUID</key>

<string></string>

<key>Layout Version</key>

<integer>0</integer>

</dict>

</plist>


The integer value controls whether artist folders end up in /Musique/Music/Music (0) or /Musique/Music/Music/Music (1). If you want your artist folders to go one level higher, i.e. into /Musique/Music, then you need to set the media folder in preferences to /Musique/Music, then make sure that the new .Media Preferences.plist created in this folder has the integer value of 0, after which if you turn Keep organized off, and then back on again, Music will rearrange all of the artist folders bringing them up to this new higher layer.


tt2

Hi there.


  1. Is Musique the name of an external drive? Here on my Catalina system my media folder is stored at /Catalina/Users/steve/Music/Music/Media (I'm Steve by the way) but if I made a library on my external drive that folder would be something like /External/Music/Media, i.e. volume name, library folder, and then media folder. This layout seems to be correct.
  2. Ouch. That looks exceedingly wrong. I've no idea how that might happen.
  3. I'm assuming you can find the missing file. Hopefully at a slightly shorter path, possibly with a leading track number, and a file extension. E.g. /Musique/Music/Music/Billie Holiday/Lady Day & Prez _ Lester Young/<Track #> I'll Get By (As Long as I Have You).<Ext>.


If the location of the song is predictable then FixLinks should be able to repair the broken links for selected tracks that have a similar pattern.


tt2

Open Music

Files > Library > Organize Library

Check under Music > Preferences > Files to see the path to your active media folder. What value do you have here?


tt2

Hello again. Let's try to get this detail fixed so we know we're talking about the same thing.


What do you see if you click the Music menu in the Music app, then the Preferences submenu entry, followed by the Files tab?


tt2

It will be in your media folder. This would normally be ~/Music/Music/Media in Big Sur, but might be ~/Music/iTunes/iTunes Media for a Music library that was upgraded from iTunes, or it could be elsewhere. As previously:


Check under Music > Preferences > Files to see the path to your active media folder.


etc.


tt2

Hi there,


Offhand I cannot think why added content is going to the wrong location. What happens if you add files to the Automatically Add to Music folder in your media folder, or whatever that is localised to? Do those tracks end up added to the library and in the media folder, or do they go somewhere else?


tt2

< 00004000 /div>

Check under Music > Preferences > Files to see the path to your active media folder.

Open that folder in Finder.

Enable hidden files with Cmd+Shift+.

The file you are looking for should show in a light grey and is called .Media Preferences.plist with a leading period.


tt2

yes, thanks, but then what happened. ll the files are going to be duplicates on a new 'music' folder' ? Will they have to stay there forever? Can I delete the one located before in what it was their original place. Will I lost all the links?

Re Hi : will you answer to my legitimate answer?

Or Do you know Anyone that can answer to those legitimate questions?

I'm having the same problems for 15 years now, and I 've already consolidate my library many times...

Thank you very much for your answer.

My post is not legible because I use Google translator from French instead in the French forum nobody reacts to my problem. Sorry for that.

Of course it is not iTunes but Music (Musique 1.2.5.here ) running on 12.6.1 Monterey.

I call it Itunes because I saw this software born under this name with all its handicaps I would really love to solve now if possible. And maybe thanks to you I'm about to finally do.


But sorry, reading the interesting links you've sent me, I still hesitate (for instance the first launch with alt key was lost, nobody prevent me).

What I would really love is to talk to someone, but a superior level specialist , like yours maybe?

Because my problems now are here for ages.

I've purge one by one 2 T of duplicates and I have now a clean file with thousand of unlinked ones. A music folder created overtimes I *** a new file. And plenty of playlist I would really not want to loose.


Could you please have a great suggestion to make? A little FaceTime Audio maybe?



Regards and respect and all the best.



David

Thank you very much for tour answer and your help.

But I can't find a file named Media Preferences.plist

I've checked in all the Library hidden fils and couldn't reveal it.

Could you please tell me in with file is it located?


All the best !

D.

I'm sorry. I assumed you would understand what I meant from context. When I wrote:


Check under Music > Preferences > Files to see the path to your active media folder. What value do you have here?


I was expecting you to understand that I was referring to the Music menu in the Music app, then the Preferences submenu entry, followed by the Files tab.


tt2

I have the path to my external hard drive that contains all the music iles.

If I disconnect that hard drive, I have a path to a file ( that is in the computer) called multimedia, but there is nothing in it , because it's all on that hardrive.

I use music (iTunes) since the beginning, (2001?) and I have a lot of files that's also why I use an external hard rive.

? I don't think it s a problem of language.

Also, the French forum has less professional people.

I'm sorry I'm fine with Mr turingtest2

I feel he's going to help me to find out the solution to this problem Apple don't seem to understand.

( I tried to talk about it with different level specialists by phone for years, and nobody knows what to do.)


Thanks for you kind help and moderation dear Carol.

Best

D

Ok great! I've set the integer value to 0 ( it was set to 1 before) but the music file I slide into my MUSIC window still goes to a folder named music.



But thanks a lot for the experience:t hat's the first time I see how to reveal invisible files other than from the finder library.


Best.

D

But as strange as it seems, I can't go back to the normal state with the visibles fils only available.

Every time I return to the music folder , re open it , the invisibles files are still there even when I close the finder windows..



I've restarted to get to the normal state, but know when I place a music file into the MUSIC window, guess what happen ; it goes directly to the trash.

gloups.


Best

D.

Before (and that was one of the problems) they went into a folder located between all the files, named MUSIC instead of going to take place in their logical attribuate folder ( na 00004000 me of the artist and /or album, if there is one all-ready).


Now they go to the trash.


d.

okay thank you very much, the problem of the trash seems now to be fixed, however the new files will always be housed in this new MUSIC folder and not in their respective place. I would very much like to find a solution because I would also have to start relocating all my files that have lost their links, more than 50,000…


  1. The location of the media folder under iTunes|Music > Preferences > Advanced

/Musique/Music/Music


2.The location of a sample missing track shown under Song Info > File > Location that begins file://

file:///Volumes/Data/images/PHOTO/2015/clamart V/DSC01542.ARW

(this is incredible because it is a path that conduces to annote hard drive where my pictures are located..!!!)


3.The true path to the file whose details you gave in 2

are you here asking for the right path the file is suppose to have?

/Musique/Music/Music/Billie Holiday//Volumes/Musique/Music/Music/Billie Holiday/Lady Day & Prez _ Lester Young/I'll Get By (As Long as I Have You)


my pleasure dear Steve, I'm David and I live in france , Paris. In case you may live just behind my block..

Yes Musique is y external drive and the path under Monterey does use the /external/ step

Note that this is a folder that had been created by Itunesmusic with the donation suppose to assembly all the library. I had to do that also because ( I didn't not mention that before) I also have a lot of playlist I don't want to loose.


I've tried to read the fix links page, but then, I really fell lost, it is to much complicated for me, also I don't understand why, considering those problems can happen quite often, the apple developers don't suggest a easy way to fix them.


Best!

D.

Good morning; Thank you!


Is .Media Preferences.plist file in the hidden Library folder or somewhere else?

In which folder of the library can I find it?

Because I still can't see it.



Best;

D.

00004000

Ok, but I can't find it under MONTEREY 10.6.2.

I know where is my media music folder but I can't find a file named .Media Preferences.plist .


Didn't you say it had to be in the hidden library folder


No, it is a hidden file, in the media folder. Like this:



tt2

Hi!

Well I don't have such a file !

Is there a way to find it back somehow?


thanks lot for your patience!


Best

David

Sorry but I'm lost.

I don't have a Preferences folder in any music folder.


Best

D

Thank you for the reply, D. I was just trying to be helpful but if you are happy doing as you are, then I’m happy for you. Turingtest2 is certainly one of our top experts!

Hello

I can see this


/Musique/Music/Music

l

The MUSIC information window says all system permissions are okay.

Nothing it's locked.


My external music folder shows also all permissions opened.


Best;

D

Good morning, turingtest2

Is there something we can do to avoid this?

Wish you a nice weekend;

David