Re: Any general way to tell when a scriptable app has finished its task?
Re: Any general way to tell when a scriptable app has finished its task?
- Subject: Re: Any general way to tell when a scriptable app has finished its task?
- From: Sander Tekelenburg <email@hidden>
- Date: Fri, 20 Mar 2009 19:44:58 +0100
At 13:02 -0400 UTC, on 2009-03-20, McLaughlin, Michael P. wrote:
[...]
> Example:
> I have a script that calls TextWrangler to do a few things, including Zap
> Gremlins. When I first wrote this, as part of a much larger script, it
> worked fine and I thought nothing of it.
>
> Much later, I realized that, whenever someone sent me an unusually large
> file, this step was far from instantaneous (as it normally is) and
> AppleScript had gone on to execute more of itself without knowing that
> needed input was not yet available.
Scripts do not "go on" just by themselves. When a script tells an app to do
something, the script only continues after it has received a response from
that app. So either you're doing something funky in your script (like
explicitly telling it to ignore applicaton responses), or the app you're
scripting is broken.
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden