I know this must be simple but I cannot figure the syntax out I have a dialog box with 2 choices for buttons and want to have it display a new dialog saying one thing if the first button is pressed and a different dialog if the second button is pressed.
If I understand you correctly, you need something like this:
display dialog "Spiffy dialog!" buttons {"Yay!","Boo"} default button "Yay!"
set theButton to the button returned of the result
if theButton = "Yay!" then
display dialog "You're nice."
else
display dialog "You are a $%$#@#."
end if
I am trying to make a simple logout script, but do not seem to be having any luck. Any suffestions would be appreciated.
um, details and what you’ve got so far would be helpful.