• 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: Any general way to tell when a scriptable app has finished its task?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Any general way to tell when a scriptable app has finished its task? (From: "McLaughlin, Michael P." <email@hidden>)

  • Prev by Date: Any general way to tell when a scriptable app has finished its task?
  • Next by Date: Removing iPhoto 08 Keywords with Applescript
  • Previous by thread: Any general way to tell when a scriptable app has finished its task?
  • Next by thread: Removing iPhoto 08 Keywords with Applescript
  • Index(es):
    • Date
    • Thread