Here is the basis of what I want to do…
display dialog “Please enter some data.” default answer “” buttons {“button 1”, “button 2”, “enter”} default button 3
the next line would be…
set theResult to text returned of result as text
But this will ignore which button is pushed.
Can I have three buttons and a field such that both the field is recorded as a variable and the button too. I know the following code isn’t correct, but it may explain what I am trying to accomplish…
display dialog “Please enter some data.” default answer “” buttons {“button 1”, “button 2”, “enter”} default button 3
set theButton to button returned of result as text
if theButton = “enter” then
set theResult to text returned of result as text
else, etc…