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: Paul Berkowitz <email@hidden>
- Date: Tue, 23 Jan 2001 13:55:21 -0800
On 1/23/01 1:27 PM, "Bret Linford" <email@hidden> wrote:
>
Hi,
>
>
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!
Put it inside a try/error block, and in the "on error", you can even
specify
on error errMsg number errNum
if errNum = -128
display dialog "Installation aborted"
else
display dialog errMsg & return & return& errNum
end if
error number -128 -- terminates for real afterwards
end try
if you think there might be some other error
--
Paul Berkowitz