Sometimes cmd+q close the file carelessly, is any way to prevent this carelessness by giving option yes or not then close the file and database?
Exit Script [ True ]
See file attached for a simple example.
I don't think you can change the behaviour of the Quit option using custom menus. You could always add a button on your interface to quit the application and script it yourself though.
Add a script triggered OnLastWindowClose (in File Options > Script Triggers) with a dialog, exiting with script result True if the user chooses to close, otherwise exit with the script result False.
How can I write script to return True or False?
Thank you so much, it works!
Retrieving data ...