shutdownRequest handler
Posted: Fri Jun 29, 2012 2:10 am
Hi,
when I quit my standalone app, this code should execute but it does not. It is in the script of the main stack.
Have an idea ? tx
I just found that if I issue a Quit command from a button, the previous script does execute ! But if the user chooses Quit MyApp from the App menu, it does not. How do I trap this ??
when I quit my standalone app, this code should execute but it does not. It is in the script of the main stack.
Have an idea ? tx
Code: Select all
on shutdownRequest
answer question "Are you sure you want to quit?" with "Yes" or "No"
if it is "Yes" then
send closecard to card 1 of stack "Sans titre"
pass shutdownRequest -- allow to quit
else
answer "we don't quit"
end if
end shutdownRequest