How does one go about telling a script to quit, even if it's only half way thorough?
For example:
I know if you use "Cancel" as a button that will exit the script.
How do I do that, but with a different word on the button?
For example:
What command will exit the script immediately if the button "Quit" is pressed and not continue on and beep.display dialog "Do you want to quit?" buttons {"Yes","No"}
if the button returned of the result is "Yes" then
--This is where I got stumped
end
beep 5
I know if you use "Cancel" as a button that will exit the script.
How do I do that, but with a different word on the button?