Re: Is it possible to set up an 'instant' idle handler
Re: Is it possible to set up an 'instant' idle handler
- Subject: Re: Is it possible to set up an 'instant' idle handler
- From: John Delacour <email@hidden>
- Date: Tue, 8 Oct 2002 23:35:45 +0100
- Mac-eudora-version: 5.3 alpha
At 4:58 pm -0400 8/10/02, Paul Skinner wrote:
Same behavior as always. I was just pointing out that the first call
is immediate, not after the idle value.
By definition once an stay-open application has launched it goes into
idle mode. If there is an idle routine, this will execute.
If, for some reason I can't think of, you need the applet to wait the
prescribed time before doing the idle routing, then you can write the
script like this, which also enables you to send an event to the
running applet to change the interval, if you should need to.
property secs : 5
global launching
on run
set launching to true
end run
on idle
if launching then
set launching to false
return secs
end if
beep
return secs
end idle
-- JD
_______________________________________________
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.