• 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: Bret Linford <email@hidden>
  • Date: Tue, 23 Jan 2001 15:14:06 -0800

Thanks to Michelle and Steve for the help!
--
Bret

> From: Michelle Steiner <email@hidden>
> Date: Tue, 23 Jan 2001 14:17:53 -0800
> To: <email@hidden>
> Subject: Re: newbie: how to get result of "cancel"
>
> On 1/23/01 1:27 PM, Bret Linford <email@hidden> wrote
>
>> 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!
>
> try
> set x to choose folder
> --do something with x
> on error
> display dialog "Installation aborted"
> end try
>
> There may be other errors than the user cancelling, so you might want to
> trap for other errors.
>
> --Michelle


References: 
 >Re: newbie: how to get result of "cancel" (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How to change the name of a Folder (using an Alias)
  • Next by Date: Re: [newbie questions]
  • Previous by thread: Re: newbie: how to get result of "cancel"
  • Next by thread: Re: newbie: how to get result of "cancel"
  • Index(es):
    • Date
    • Thread