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: Charles Arthur <email@hidden>
- Date: Thu, 8 May 2003 18:16:59 +0100
On Thu, 08 May 2003 07:28:35 -0400 Bill Cheeseman
<email@hidden> wrote:
>
The AppleScript 'idle' handler doesn't take a parameter. I gather your
>
script compiles, so presumably your 'idle' handler is being interpreted as a
>
private handler of your own.
And much other pointing-out of errors.
Thanks, guys. It's quite remarkable now on examination how completely I'd
futzed it up, and in so few lines! Bill Gates should offer me a job.
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.)
>
The script still won't work, however, because it isn't structured to take
>
advantage of the fact that the AppleScript 'idle' handler will fire every 10
>
seconds until the script quits. To do it right, you basically want the
>
'idle' handler to test whether Post Armor X is running yet and, once it is
>
running, then launch Eudora.
I may try this, although in the light of previous it seems it would make
more sense just to use "delay". Post Armor is a Java app, and so not very
interested in Applescript events.
Thanks for the advice.
Charles
--
----------------------------
http://www.ukclimbing.com : 1100+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. And there's even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.