Re: Buttons with Display Dialog
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