• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is it possible to set up an 'instant' idle handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to set up an 'instant' idle handler


  • Subject: Re: Is it possible to set up an 'instant' idle handler
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 07 Oct 2002 23:32:14 -0700

On 10/7/02 11:15 PM, "Marc K. Myers" <email@hidden> wrote:

>> 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.

Hmmm. Has it changed? Which AS version? This is what the ASLG says, p.307
(AS 1.3.7 of course):

If a stay-open script application includes an Idle handler, AppleScript
sends the script application periodic Idle commands whenever it9s not
responding to incoming events. The statements in the handler run
periodically (every 30 seconds, by default).

For example, the following handler causes a stay-open script application to
beep every 30 seconds after it has been launched.

on idle
beep
end idle

--
Paul Berkowitz
_______________________________________________
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.

  • Follow-Ups:
    • Re: Is it possible to set up an 'instant' idle handler
      • From: Paul Skinner <email@hidden>
    • Re: Is it possible to set up an 'instant' idle handler
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Is it possible to set up an 'instant' idle handler (From: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Re: 'sort' command-alternative?
  • Next by Date: Re: Removing items from lists
  • Previous by thread: Re: Is it possible to set up an 'instant' idle handler
  • Next by thread: Re: Is it possible to set up an 'instant' idle handler
  • Index(es):
    • Date
    • Thread