Re: "idle" has different effect in X vs 9?
Re: "idle" has different effect in X vs 9?
- Subject: Re: "idle" has different effect in X vs 9?
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 08 May 2003 14:35:29 -0400
on 03-05-08 1:16 PM, Charles Arthur at email@hidden wrote:
>
Interestingly... Bill wrote:
>
>
> ..That's the end of your script; it sits
>
> there doing nothing until you Quit it from the Finder (assuming you saved it
>
> as "run only").
>
>
It's saved as a script, but it always quits (unless it throws a timeout
>
error, which it does in 9 from time to time.)
I didn't mean to type "run only," but "stay open." The AppleScript 'idle'
handler only works in a script that is saved as a "stay open" application or
applet. I you run it as a non-stay open application or a simple compiled
script, it will quit automatically when the run handler is finished, and it
will never receive any 'idle' events.
But I think 'delay' is the way to go for your task.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.