Re: Newbie Questions: Differences between idle handlers and other type of handlers?
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.