Re: 'include' statement in applescript
Re: 'include' statement in applescript
- Subject: Re: 'include' statement in applescript
- From: Brian Johnson <email@hidden>
- Date: Tue, 25 Jan 2005 14:35:29 -0800 (PST)
On Tue, 25 Jan 2005, Graham Anderson wrote:
is there a way to make handlers run sequentially..one after the other like
handler1()
handler2()
handler3()
basically, handler1() completely finishes before handler2() begins....
Handlers 'handle' different situations. Some of the standard situations
are RUN, OPEN, QUIT, etc. The events that these handlers respond to come
from "outside" the script. Others you get to make up, like "Convert2Text"
or "myhandler1". These (pretty much) only run when called from "inside"
your script. And the script doesn't do something else while they run, so
if your script looks like this
On Run
myhandler1()
myhandler2()
display dialog "Done" giving up after 2
end Run
on myhandler1()
...
end myhandler1
on myhandler2()
...
end myhandler2
Each 'myhandler' will run to completion before the next handler is invoked
or before the dialog box is displayed.
Now, if your handler invokes another script or application inside of an
"ignoring application responses" ... THEN you could get synchronous
execution.
HTH.
- brian johnson, dept of architecture, university of washington
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden