Hi,
Instead of OK and Cancel, I want to use Yes and No. To label the buttons, I know I can do something like the following:
set entBox to display dialog “Are you printing to the HP8000?” buttons {“Yes”, “No”} default button “Yes”
However, I don’t know what to do to make the “No” button the equivalent of a “Cancel” button. I’ve tried things like the following:
set ansBox to button returned of entBox
if ansBox = “No” then stop (or quit or whatever else I thought of last week)
Unfortunately, assuming I don’t get a syntax error, the script runs as if the user had clicked on the “Yes” button no matter what button was actually chosen.
Any ideas?
AppleScript: 1.9.3
Operating System: Mac OS X (10.3.9)