Re: Suggestion: iTunes needs a refresh event
Re: Suggestion: iTunes needs a refresh event
- Subject: Re: Suggestion: iTunes needs a refresh event
- From: Chris Garaffa <email@hidden>
- Date: Sun, 14 Mar 2004 12:53:16 -0500
On Mar 14, 2004, at 10:40 AM, Gnarlodious wrote:
I'd like to see iTunes send a "Playing a new song" event. All the
iTunes
scripts out there send an interval query which is processor intensive
and
always delays the detection of a new song.
Any support on this one?
I've been thinking for a long time that this would be an excellent
feature. Until now, my scripts and apps have been using an idle handler
to check every few seconds for the current song and comparing it to a
global. How do you think this would work?
Cocoa has an NSDistributedNotificationCenter class which "can
distribute notifications asynchronously to tasks other than the one in
which the notification was posted." [1] This wouldn't help us much in
AppleScript, though. In a Studio app, either Call Method or a custom
Cocoa class might be able to handle this, but I've never had the
opportunity to play with it.
Has anyone already filed an enhancement request for this?
[1]
<
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSDistributedNotifctnCtr.html#//apple_ref/doc/uid/
20000396>
--
Chris Garaffa
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.