Create a playlist in iTunes based on a hard drive folder

19

3

I'd like to be able to base playlists in iTunes on a folder on my hard drive.

For example, say I have this directory structure:

C:\MP3s\Doctor Who Music
C:\MP3s\Star Wars Music

Importing all those MP3s into iTunes is really simple - at the bare bones version you can just drag the MP3 folder into the iTunes window and it does the rest.

But, having done that, what I'd like to be able to do is point iTunes at each of those directories and have it turn them into their own playlists, so I end up with a Doctor Who Music and a Star Wars Music playlist based on the MP3s locations on the hard drive.

Does iTunes have a way to do this, or is there a way to trick it into this with some other program?

(I'm on Windows, but I'm sure Mac users would also appreciate answers to this as well.)

Electrons_Ahoy

Posted 2009-08-19T18:14:06.667

Reputation: 2 491

4My wife tells me I have extremely nerdy tastes in music. – Electrons_Ahoy – 2009-08-19T18:14:30.393

Answers

15

Its really simple with iTunes 9. iTunes 9 has a Playlist Folder in itself. All you have to do is drag a particular folder in a particular location onto the playlist pane. It will create an entire playlist based on files only in that particular folder. CHEERS!

user12248

Posted 2009-08-19T18:14:06.667

Reputation: 151

What about automatically? i.e. I create a sub-folder in my music dir and iTunes automatically creates the playlist. Doing it one by one is tedious when you have a couple hundred folders. – square_eyes – 2015-05-30T23:12:34.893

Very nice. But can we do this with Windows Media Player, or any other windows application? – Nikos – 2016-07-22T19:30:47.350

Easy as Pie! :) – Leniel Maccaferri – 2010-09-28T01:23:46.843

still working in iTune 12 :) – Matt M. – 2020-02-23T03:05:25.050

I think this doesn't work anymore (iTunes 11) – Jonathan – 2013-10-18T09:35:19.153

Works for me. To create a new playlist in my (MacOS-based) iTunes 11.2.2, drag the folder from the Finder to the "Playlists" section title in the left-side frame. Otherwise, just drag the folder to any existing playlist and my mp3 files in said folder are added to said existing playlist. – Johnny Utahh – 2014-06-01T23:29:04.673

2

If you make an empty playlist and then drag the folder from the harddrive over that playlist, it will load all that music in that playlist.

Leah

Posted 2009-08-19T18:14:06.667

Reputation:

I think this doesn't work anymore (iTunes 11) – Jonathan – 2013-10-18T09:35:39.953

2

In iTunes you may be able to create a SmartPlaylist that filters on Album or Artist. There doesn't appear to be a way to use the folder to filter the list.

Chris Nava

Posted 2009-08-19T18:14:06.667

Reputation: 7 009

2

I had the same problem and didn't find a way to solve it in internet. So I decided to write a simple app that help us to re-create our folder lists 'mp3s' into iTunes. It's a simple program written in delphi, here is the link on how to use it and here the link directly to the (not installing) app.

filippo forlani

Posted 2009-08-19T18:14:06.667

Reputation: 21

@filippo forlani Your software can't be downloaded any more because the link 404s. Could you please provide a mirror? – WackGet – 2019-12-11T03:36:54.453

@PatrickMaciel Do you happen to have a saved copy of the software you could upload please? – WackGet – 2019-12-11T03:37:11.503

Your software works very well. Thanks so much! – Patrick Maciel – 2014-02-26T01:27:05.927

1

Use The GodFather to change the comments field of a song to the folder name. You can then create a dynamic playlist in iTunes that evaluates the information of the comments field.

Downside: before you add new songs to iTunes you have to do this step. Perhaps you can do this with scripting in The GodFather or with Visual Basic and iTunes directly.

FxFx

Posted 2009-08-19T18:14:06.667

Reputation: 11

0

Aha, found a solution.

iTunes doesn't seem to be able to do this, but WinAMP will.

So, enqueue all the MP3s in question in WinAMP (generally, the easy way is to right-click on the folder itself and choose "Enqueue in Winamp".) Save the resulting playlist as an M3U.

Create a new (and empty) playlist in iTunes.

Drag the M3U from Windows Explorer into the empty playlist and viola.

There is one catch - save the M3U in the same folder as the music files - otherwise WinAMP will put relative paths in the M3U rather than just the file names, and this will cause iTunes to think these are new files, even if you've already imported them. If the M3U doesn't have paths, just the file names, iTunes will recognize which files it already has imported and will act accordingly.

Electrons_Ahoy

Posted 2009-08-19T18:14:06.667

Reputation: 2 491

This is of limited usefulness (for me at lesat), as the iTunes playlist won't keep up when the directory content changes... A more dynamic solution would be nice if you want to use the filesystem for organising music. – Jonik – 2009-08-19T18:49:41.617

@Jonik: agreed on all points. This can't be the best solution, it's just the only one I've found so far. – Electrons_Ahoy – 2009-08-19T19:06:54.220

0

In OS X you can write a AppleScript to do what you want, e.g. my DiskHierarcyToItunes you can find at http://vladalexa.com/scripts/applescript/itunes/ Possibly you could do this on a mac then export that library to iTunes on windows.

valexa

Posted 2009-08-19T18:14:06.667

Reputation: 141

Could you perhaps post the relevant script? – Simon Sheehan – 2012-03-18T15:38:49.043

trying to post it here it says "2400" characters too long, you can find the scripts on my website – valexa – 2012-03-20T09:46:25.033

There should not be a character limit like that. – Simon Sheehan – 2012-03-20T11:37:37.940