• 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: Get the latest song pathname played by iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the latest song pathname played by iTunes


  • Subject: Re: Get the latest song pathname played by iTunes
  • From: Finlay Dobbie <email@hidden>
  • Date: Sun, 18 Jul 2004 14:36:48 +0100

On 18 Jul 2004, at 12:56, Mario Diana wrote:

If you wade your way through that, the information should be in there. Before you jump in though I have to warn you that the format of the file is a little "unconventional" as far as XML goes. In other words, it isn't at all easy to parse. Is there an easier way? If there is, I do wish someone would let me know.

Uh, it's a property list.

NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:[@"~/Music/iTunes/iTunes Music Library.xml" stringByExpandingTildeInPath]];

I don't see how it could possibly be any easier to parse.

-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Get the latest song pathname played by iTunes (From: Mario Diana <email@hidden>)

  • Prev by Date: Re: Making an NSTextView plain text
  • Next by Date: Re: Get the latest song pathname played by iTunes
  • Previous by thread: Re: Get the latest song pathname played by iTunes
  • Next by thread: Re: Get the latest song pathname played by iTunes
  • Index(es):
    • Date
    • Thread