• 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: "Jeffrey L. McLean" <email@hidden>
  • Date: Wed, 24 Jan 2001 20:45:40 -0500

try
set MyFolder to (choose folder)
on error
display dialog "Installation aborted" buttons {"Okay"} {Option-L}
default button "Okay" giving up after 15
return
end try
display dialog "You choose the folder " & MyFolder

Jeffrey

> From: Bret Linford <email@hidden>
> Date: Tue, 23 Jan 2001 11:38:06 -0800
> To: "email@hidden"<email@hidden>
> Subject: newbie: how to get result of "cancel"
>
> 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!
> --
> Bret


References: 
 >newbie: how to get result of "cancel" (From: Bret Linford <email@hidden>)

  • Prev by Date: Re: whose name contains space
  • Next by Date: Re: Main screen size
  • Previous by thread: Re: newbie: how to get result of "cancel"
  • Next by thread: Why is this so?
  • Index(es):
    • Date
    • Thread