When it is launched
The script is launched when the document is being closed in the document editor (when going to a new document or closing the document editor) and prior to confirmation of changes.- If the CanClose.Value property is set to false, the document will remain open.
- If the CanClose.Value property is set to true, the document will be closed after the script execution.
