• 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 19:00:21 -0700

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.

Anyway. What I said was to call the idle handler from the main script by:

idle

That will call the idle handler which will start immediately. Don't put
anything else in the top-level main script. Do everything (including calling
other handlers) from the idle handler.

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). I was amused
to see a script somewhere (I forget where) with the return statement

return .7

!



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

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: and people wonder why I curse Microsoft
  • 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