So, I'm coding my first "stack leaving" here...and I get twice the msg "do you want to quit".
....plus...it does not even quit !!!
goal is to display a msg box, make sure the user wants to quit, save all possible changes before...and close the App.
So whats missing in that Doc. code ?
Code: Select all
on closeStackRequest
answer "Are you sure?" with "No" or "Yes"
if it is "Yes" then pass closeStackRequest
pass closeStackRequest // << with or without this line = same repeating question :0 !
end closeStackRequest