Re: Get the latest song pathname played by iTunes
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.