Re: Access iTunes Playlists / tracks via Cocoa
Re: Access iTunes Playlists / tracks via Cocoa
- Subject: Re: Access iTunes Playlists / tracks via Cocoa
- From: Jerry Brace <email@hidden>
- Date: Sun, 20 Mar 2005 19:40:41 -0330
Thanks for all of the great feedback guys. I'm going to proceed with
parsing the XML data. The file structure is more than ideal.
Thank again - I just signed up today and the speed of your replies have
been amazing. I'm looking forward to being a part of the community.
Cheers,
Jerry Brace
Web and Multimedia Developer
email@hidden
On 20-Mar-05, at 6:21 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];
HTH!
Dave DeLong
On Mar 20, 2005, at 2:23 PM, Jerry Brace wrote:
Thanks for the reply Anton. My application is written in Cocoa - is
it possible to do the AppleScript calls you mention via Cocoa? This
is just a small portion of the application - so it wouldn't be an
option to have this as an AppleScript application.
Cheers,
Jerry
On 20-Mar-05, at 5:29 PM, Anton Kiland wrote:
This can easily be done with AppleScript. Open the AppleScript
dictionary for iTunes to see what you can do.
Anton Kiland
email@hidden
2005-03-20 kl. 21.45 skrev Jerry Brace:
Hi everyone,
This is my first post to the list. Today I've been working on
adding functionality to my application to include access to the
current users iTunes playlists / track listings.
Does anyone have a code snip, advice, url, or anything that would
help me out with this task?
My UI spec calls for a list of playlists to be populated in a
dropdown list, and the tracks for the selected playlist to be
dislayed in a tableview.
Cheers,
Jerry Brace
Web and Multimedia Developer
email@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCPeQmX5qtjlHcF1YRAmblAKCI6hRqs/XCfbnvrpgcAWQ2Y9zhfwCfTU7S
kLqdUBOvyGV2xk0RqfdN1VY=
=sTJp
-----END PGP SIGNATURE-----
Jerry Brace
Web and Multimedia Developer
email@hidden
_______________________________________________
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
_______________________________________________
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