Re: Scripting MegaPhone {was Re: not finding "help" helpful}
Re: Scripting MegaPhone {was Re: not finding "help" helpful}
- Subject: Re: Scripting MegaPhone {was Re: not finding "help" helpful}
- From: Chris Nebel <email@hidden>
- Date: Thu, 29 Nov 2001 19:42:05 -0800
- Organization: Apple Computer, Inc.
vectormation wrote:
>
-- pause script to complete dialing
>
delay 7
>
-- remember AppleScript is issuing commands to apps and does not
>
-- wait for them to complete before giving the next command
This is a popular belief, but is not generally true. AppleScript waits
until the application returns a result from the command [1]. If the
application returns before it's actually done doing whatever you asked it
to, there's nothing AppleScript can do about that. It's considered bad form
to write an application this way, but some people do it anyway [2].
--Chris Nebel
AppleScript Engineering
[1] unless you use "ignoring application responses", in which case it
doesn't wait.
[2] In their defense, sometimes they don't have a choice.