Re: iTunes programming question
Re: iTunes programming question
- Subject: Re: iTunes programming question
- From: has <email@hidden>
- Date: Mon, 10 Jul 2006 21:57:00 +0100
Philip Lukidis wrote:
I need to control iTunes, though I have not received a precise
specification request yet. I know that I'll have to query the
library database, find out which track is playing, be notified for
library/playlist/track changes, and other similar requests (sorry
to be so vague). I thought it preferable to use Apple Events for
speed, and while I would guess that this is possible, I have not
found any Apple documentation on how to do so. Could anyone point
me towards some documentation on this?
http://developer.apple.com/documentation/AppleScript/Conceptual/
AppleEvents/index.html
I'd rather not rely on Applescript if I could avoid it, so as to
minimize response times. Apple events would seem to be preferable,
at least prima facie.
AppleScript's performance in sending and receiving Apple events is
fine, so that won't be the issue. The major performance bottlenecks
are 1. the rest of the language, which is underpowered and slow, and
2. in the applications you're controlling, where resolving references
and performing commands can be very expensive. #1 may or may not be
an issue, but can't really say more without knowing what language you
intend to develop in (C, ObjC, Java, Perl, Python, AppleScript, Ruby,
Tcl are all options, though some have higher level scripting support
than others). #2 is often an issue with iTunes where you can be
dealing with many thousands of tracks, though there are various
techniques for minimising the amount of work the application has to
do. For more detailed advice you really need to be more specific
about what your project is and what it needs to do.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden