Re: iTunes Database
Re: iTunes Database
- Subject: Re: iTunes Database
- From: John Stiles <email@hidden>
- Date: Fri, 5 Jan 2007 10:51:37 -0800
The XML is the wrong way to go. It is undocumented and not meant for
third party developers to mess with. More to the point, it completely
fails to address the OP's question of instant notifications when
things actually happen.
You will want to communicate with iTunes via distributed
notifications or AppleScript. I know iTunes sends out notifications
for many common events, such as when the current track changes. I
don't know about when items are added, but it's something to
investigate for sure.
The source for "GrowlTunes" can show you the basics of how to watch
for iTunes' notifications.
On Jan 5, 2007, at 6:55 AM, Steve Majewski wrote:
On Jan 5, 2007, at 8:17 AM, Olariu Adrian Mihai wrote:
No, because this xml file is not updated as soon as a change has
been made(play, adding a track, removing a track). Or can I force
itunes to do this update whenever i want?
There is a manual 'export library' function in iTunes menu, but I
don't see that it is a scriptable operation.
( but maybe I just missed it. )
I don't know of any way to force update of the library xml file.
( Other that quitting and restarting the app. )
Robert Cerny wrote:
Can reading the itunes xml file make the trick for you?
HTH
Robert
On 5.1.2007, at 13:32, Marc Monguio wrote:
As far as I know, you can't.
On 05/01/2007, at 12:34, Olariu Adrian Mihai wrote:
I wonder if it is possible to get all the informations of a
track at once without using {database ID, name, artist, etc ...}
What I would try is:
[1] read in all of the info from the library xml file.
[2] with applescript, get only most recently modified or recently
added tracks and ask for their info.
-- Steve Majewski
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden