How do I find iTunes library folder on Mac and Windows?

Posted by Boris on Stack Overflow See other posts from Stack Overflow or by Boris
Published on 2009-12-26T01:18:35Z Indexed on 2010/06/17 6:03 UTC
Read the original article Hit count: 225

Filed under:
|
|

I made an application that parse the iTunes library to retrieve its content. It works fine in most cases but if a user moved his library somewhere else than the default iTunes folder (see: http://lifehacker.com/238296/ultranewb--how-to-move-your-itunes-library-to-an-external-drive), then I need a way to find this path.

On Mac, I was looking into ~/Library/Preferences/com.apple.iTunes.plist. There is a setting called "alis:1:iTunes Library Location" but it contains several parameters all concatenated and converted to hexadecimal.

On Windows, I found this file "C:\Documents and Settings\\Application Data\Apple Computer\iTunes\iTunesPrefs.xml" that contains a setting "iTunes Library XML Location:1" but this one is encoded.

Any help would be greatly appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about Windows

Related posts about mac