Applescript Buttons

liunx

Guest
I can not get the buttons to do what is after then. I don't know if I have to declare a variable, I think I do but I don't know how. I have the code here, it's all in Applescript. <br />Thanks.<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />display dialog "My Applicaton" & return & return & ?br />    "Welcome to My Application" buttons {"Talk Text", "Cancel", "Continue"} default button 3<br />if ("Talk Text") then<br />    say "Welcome to My Application."<br />end if<br />if ("Cancel") then<br />    close<br />end if<br />if ("Continue") then<br />    display dialog "Continue" & ?br />        "You pressed continue."<br />end if<br /><!--c2--></div><!--ec2-->
</div>
 
Top