• 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: Buttons with Display Dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buttons with Display Dialog


  • Subject: Re: Buttons with Display Dialog
  • From: Peter Baxter <email@hidden>
  • Date: Mon, 3 Dec 2007 23:26:29 +1100

Oops,
display dialog "Hello world" buttons {"Accept", "Decline"}
set the user_choice to the button returned of the result
if user_choice is "Accept" then
	display dialog "Hpw about that then!"
end if
On 03/12/2007, at 10:49 PM, Skeeve wrote:

try
set myDialog to display dialog "Hello World" buttons {"Accept", "decline", "Cancel"} cancel button "Cancel"
if the button returned of myDialog is "Accept" then
return "You accepted!"
else
return "You declined!"
end if
on error errtxt number errnum
if errnum is -128 then
return "You canceled"
else
return errtxt & " occured"
end if
end try

Peter Baxter email@hidden


There is hardly anything in the world that some man can't make a little worse and sell a little cheaper, and the people who consider price only are this man's lawful prey.-- John Ruskin



_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Buttons with Display Dialog (From: Kevin Ballon <email@hidden>)
 >Re: Buttons with Display Dialog (From: Peter Baxter <email@hidden>)
 >Re: Buttons with Display Dialog (From: Skeeve <email@hidden>)

  • Prev by Date: Re: Buttons with Display Dialog
  • Next by Date: Re: Buttons with Display Dialog
  • Previous by thread: Re: Buttons with Display Dialog
  • Next by thread: Re: Buttons with Display Dialog
  • Index(es):
    • Date
    • Thread