• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: newbie: how to get result of "cancel"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: newbie: how to get result of "cancel"
  • Next by Date: RE: scripting copy from one filemaker database to another
  • Previous by thread: RE: scripting copy from one filemaker database to another
  • Next by thread: Re: newbie: how to get result of "cancel"
  • Index(es):
    • Date
    • Thread