RE: newbie: how to get result of "cancel"
RE: newbie: how to get result of "cancel"
- Subject: RE: newbie: how to get result of "cancel"
- From: "Goodman, Steve" <email@hidden>
- Date: Tue, 23 Jan 2001 16:02:40 -0600
>
I know that if I do a "choose folder" and the user hits
>
"cancel" that the
>
script will be killed. How do I get the "result" of a
>
"cancel"? If the user
>
hits "cancel", I would like to have a dialog box that says
>
something like
>
"Installation aborted". Thanks!
You can capture it with a try statement:
Try
display dialog "You better not cancel"
on error number -128
display dialog "You did it anyway"
end
Steve Goodman
Vertis - THE LTC GROUP
......."Duct tape is like the force, it has a light side and a dark side and
it holds the universe together."------Unknown