Re: Track if user hits CANCEL on popup
Re: Track if user hits CANCEL on popup
- Subject: Re: Track if user hits CANCEL on popup
- From: Mark Butcher <email@hidden>
- Date: Fri, 21 Dec 2001 11:53:20 -0800
email@hidden wrote:
Can anyone tell me if it's possible to write an AppleScript that can
detect
if the user hit's the cancel button on a popup?
I'm not clear if this is an AppleScript-Users question, or an
AppleScirpt Studio question. One method someone mentioned a while ago to
prevent a script from exiting when the user clicked on Cancel in a
display dialog, was to put
... with buttons {" Cancel", ...
in the script. Note the space before the Cancel. This way, AppleScript
does not recognize the string returned, and allows you to continue with
your script exicution.
HTH
MarkB