Macos – Move some iTunes library items to different drive

file managementituneslibrariesmacosscript

My internal hard drive is somewhat small, and I only regularly listen to a fraction of my iTunes library anyway, so I'd like to keep large portions on it on an external drive for archival purposes. Since dealing with multiple iTunes libraries is somewhat painful, the solution I'm looking for is to move individual items of the library to a different location, without compromising the "Keep organized" and "Copy files" settings.

I found an AppleScript that I assume is supposed to do this, Move Files To Folder…, but it instead copies them, and doesn't update the library accordingly.

I can do this manually by moving the file, then accessing it in iTunes — it'll prompt me for the new location. I just don't intend to do this one by one for thousands of files.

Best Answer

This really depends, but I don't think it can be done the way you want it.

The 'supported' way

You can disable iTunes from copying music to the iTunes folder for future imports by going iTunes > Preferences > Advanced > Uncheck "Copy files to iTunes Music folder when adding to library". This will add all future files to the library, but it will not copy them into the iTunes folder, so make sure you do no.

The downside to this is that iTunes will not be able to keep those folders organized, so you would have to put them into the folder structure you want BEFORE importing them.

enter image description here

The hacky way

After importing the items into your library, move them to your alternate location, then create a symbolic link to the new location of the file. You have to use terminal for this:

ln -s /new/file/location/Britney\ Spears ~/Music/iTunes/Britney\ Spears

Assuming you moved the Britney Spears to /new/file/location/. The \ is used to escape the space in Britney Spears. This is important.

I have not tested this myself, so I do not actually know if it will work. I will try it out later and update this post


After further pondering, I have hypothesised a modification of the first method that should let you keep your ratings. After unchecking "Copy files to iTunes Music folder when adding to library", move the songs with the lower ratings to the external drive. Now, when you try to play the moved tracks iTunes should complain about the missing tracks. When it does, point it to the files that you moved on to the external drive.

If this works, it would be a tedious, song-by-song process which may be impracticable for a large amount of songs. You could also try going one step further by rechecking "Copy files to iTunes Music folder when adding to library" and hope that does not copy the files you just moved back into the iTunes Music folder.

Related Question