When it is launched
The script runs when a document opens in the document editor (when a new document window opens or you go to a new document). When the script runs, all windows inside the document editor are already created.Parameters
The call produces the following error:
