• 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: Newbie Questions: Differences between idle handlers and other type of handlers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Questions: Differences between idle handlers and other type of handlers?


  • Subject: Re: Newbie Questions: Differences between idle handlers and other type of handlers?
  • From: has <email@hidden>
  • Date: Mon, 24 Feb 2003 16:55:49 +0000

Simon brown wrote:

I'm experiencing a few differences in the execution of commands within idle handlers [...]

Don't know about the quickeys thing since I don't use it. Sounds odd.

Getting an idle-based applet to quit itself is easy enough - eg:

======================================================================

property _idleDelay : 5 * minutes

on idle
set quitNow to false
--
-- your main code goes here
-- note: when you want to quit, set quitNow to true
--
if quitNow then
quit
return 1 -- don't wait 5 minutes before quitting!
else
return _idleDelay
end if
end idle

======================================================================

Set quitNow to true and the applet will quit when the idle handler returns.

has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.

  • Prev by Date: Re: Newbie Questions: Error numbers - any complete reference
  • Next by Date: Re: applescript-users digest, Vol 3 #1367 - 17 msgs
  • Previous by thread: Re: Newbie Questions: Differences between idle handlers and other type of handlers?
  • Next by thread: Remote GUI?
  • Index(es):
    • Date
    • Thread