Is there a way to run a script at shutdown, kind of like how scripts in the startup folder get run when an instance of MoI starts?
Also, how can I prevent PromptSaveChanges from getting shown at shutdown so that I can show my own modified version instead? I'm trying to avoid directly editing PromptSaveChanges.htm so that I don't have problems with version updates and such.
I guess I could prevent PromptSaveChanges from being shown if I could make sure that my shutdown script runs prior to whatever machinery decides whether to show PromptSaveChanges. For the thing I'm working on it would be fine for my shutdown script to save the currently open file so that moi.geometryDatabase.currentFileChanged is false, which seems to prevent PromptSaveChanges from getting shown.
- Peer
|