Subject: Stupid Question - how to quit a script
Subject: Stupid Question - how to quit a script
- Subject: Subject: Stupid Question - how to quit a script
- From: "Donald S. Hall" <email@hidden>
- Date: Tue, 20 Nov 2001 23:47:22 -0700
You could throw an error number -128 (user cancelled). In other words:
if the answer is yes then error number -128
This is the same message that cancel buttons in dialogs send.
HTH,
Don
>
>
>
How would I quit a script in the middle of it should the user choose?
>
For example:
>
>
script here
>
>
display dialog "Stop script and quit now?"
>
if answer is yes then
>
quit and stop running <-- this is the command I'm looking for
>
end if
>
>
more script here
>
>
>
Thanks so much,
>
Landis
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden