Re: Access iTunes Playlists / tracks via Cocoa
Re: Access iTunes Playlists / tracks via Cocoa
- Subject: Re: Access iTunes Playlists / tracks via Cocoa
- From: "James B. Tuley" <email@hidden>
- Date: Sun, 20 Mar 2005 20:41:11 -0600
On Mar 20, 2005, at 3:51 PM, Dave DeLong wrote:
I've been working on a similar project myself that involves getting
track information from iTunes. What I do is I load the iTunes Music
Library.xml file and read through that. It contains all the available
track information, including a URL on where to find it.
Here's the key to loading it:
NSURL * iTunesDatabaseLocation = [NSURL
fileURLWithPath:[@"~/Music/iTunes/iTunes Music Library.xml"
stringByExpandingTildeInPath]];
NSDictionary * iTunesDatabase = [NSDictionary
dictionaryWithContentsOfURL:iTunesDatabaseLocation];
FYI, the iTunesDatabaseLocation could also be in the secondary
location ~/Documents/iTunes/iTunes Music Library.xml, or could be moved
with an alias, so you should resolve them too so you can get the file
in all cases. http://www.indyjt.com/blog/?p=51
-Jay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden