Displays dialog with 2 buttons
display dialog "How are you?" buttons {"Good", "Sucks"} default button 1 with icon 1
Display dialog with text box
set question to display dialog "Enter your name" default answer "" buttons {"OK", "Close"} default button 1 with icon 1
set selectedButton to button returned of question
set strName to text returned of question
if selectedButton is equal to "OK" then
display dialog "Hello " & strName
end if