• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Access iTunes Playlists / tracks via Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Access iTunes Playlists / tracks via Cocoa
      • From: Kevin Ballard <email@hidden>
References: 
 >Access iTunes Playlists / tracks via Cocoa (From: Jerry Brace <email@hidden>)
 >Re: Access iTunes Playlists / tracks via Cocoa (From: Anton Kiland <email@hidden>)
 >Re: Access iTunes Playlists / tracks via Cocoa (From: Jerry Brace <email@hidden>)
 >Re: Access iTunes Playlists / tracks via Cocoa (From: Dave DeLong <email@hidden>)

  • Prev by Date: /usr/X11R6/bin?
  • Next by Date: Re: /usr/X11R6/bin?
  • Previous by thread: Re: Access iTunes Playlists / tracks via Cocoa
  • Next by thread: Re: Access iTunes Playlists / tracks via Cocoa
  • Index(es):
    • Date
    • Thread