Skip to main content

When it is launched

The script is launched prior to activating the document in the task window (by a double-click, by using menu commands, etc.).
  • If the CanOpen.Value property is set to true, the document will be opened in the document editor after the script execution.
  • If the CanOpen.Value property is set to false, the document will not be opened.
By default, the value of the CanOpen parameter is true.

Parameters

NameTypeAccessDescription
CanOpenIBooleanRead/writeSpecifies whether to open the document
ContextITaskWindowRead/writeThe task window
DocumentItemIDocumentItemRead/writeThe document being processed