When it is launched
The script is launched upon opening a document in the document editor (when opening a new document window or going to a new document). When the script is launched, all windows inside the document editor are already created.Parameters
Closing the document from this script is not allowed. Using the command DocumentEditor.TaskWindow.CloseEditorWindow(); will cause the error message:
