Newbies 42n81 Posted January 4, 2007 Newbies Posted January 4, 2007 Hi there, Does anyone know of a way to abort the closing of a file when the user closes the file's last open window? If they close their last open window accidentally, I want to provide an opportunity to cancel shutdown and restart the application. I have a Shutdown script that's performed automatically when Closing the file. Cancelling the Shutdown script (and performing a Restart script) is no problem, but the file continues closing once the Restart script is finished. Is there anyway to stop the file from closing? Thanks, Dave
Stuart Taylor Posted January 4, 2007 Posted January 4, 2007 create a custom menu set, load it on startup, modify the "file > close" action to a script. see example attached CustomMenu.fp7_2.zip
Newbies 42n81 Posted January 5, 2007 Author Newbies Posted January 5, 2007 Pretty slick. Interesting tidbit I don't quite understand: when I first tried your script in my file, I had "No Command Assigned" to the menu item--assuming the script would handle everything--but then it didn't work. Not sure I get how the two interact, but chosing to include the Close command along with your script gives me the behavior I want. Thanks! Dave
Recommended Posts
This topic is 6533 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now