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: "Marc K. Myers" <email@hidden>
- Date: Tue, 8 Oct 2002 02:15:07 -0400
Date: Mon, 07 Oct 2002 19:00:21 -0700
Subject: Re: Is it possible to set up an 'instant' idle handler
From: Paul Berkowitz <email@hidden>
To: Applescript-Users <email@hidden>
On 10/7/02 11:29 AM, "Marc K. Myers" <email@hidden> wrote:
Someone (I think it was Paul Berkowitz) pointed out if you don't put
in
a return statement an idle handler will repeat "instantly". I have
found through experimentation that this is not true.
Definitely not me. I don't mind if you want to praise me for something
I
didn't say :-) but if you're going to criticize by name, it would be
better
if you spent a few seconds finding the message in the same thread to
see who
the author was.
I'm sorry about that.
If an idle handler does not have a return statement it uses the default
return of 30 seconds. The least you can return is 1 (second).
If the result of the last operation in an idle handler is not a
positive integer, the idle period remains the same as it was for the
prior iteration. If the period was not set in an earlier iteration it
defaults to 1 second. I wrote a script to test just those conditions
(the result of the last operation was a boolean value) and found that
1000 iterations of the idle handler took 1016 seconds.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[10/08/02 2:12:55 AM]
_______________________________________________
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.