RE: iTunes programming question
RE: iTunes programming question
- Subject: RE: iTunes programming question
- From: "Philip Lukidis" <email@hidden>
- Date: Tue, 11 Jul 2006 10:04:53 -0400
- Thread-topic: iTunes programming question
Thanks for your answer. Right now I'm doing preliminary research only because I have not received any specifications yet. Perhaps when I know more I could post a more specific question.
I had found the Apple Events documentation, but I was hoping that Apple would have documentation on the AE necessary for communicating with iTunes. That was quite optimistic as it turns out.
As for the development language, I assume for now that I would be using Objc. This online resource http://www.cocoadev.com/index.pl?CallAppleScriptFunction coupled with Apple's documentation is a useful starting point for me.
Philip Lukidis
-----Original Message-----
From: applescript-users-bounces+plukidis=email@hidden
[mailto:applescript-users-bounces+plukidis=email@hidden
]On Behalf Of has
Sent: Monday, July 10, 2006 4:57 PM
To: email@hidden
Subject: Re: iTunes programming question
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
_______________________________________________
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