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

  • Follow-Ups:
    • Re: Is it possible to set up an 'instant' idle handler
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Is it possible to set up an 'instant' idle handler (From: Paul Skinner <email@hidden>)

  • Prev by Date: Where is the application ?
  • Next by Date: Re: My soul is tormented by Quark (I think)
  • 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