onNewDocument

Read-Write Property of type VARIANT

JavaScript

var Action = ScriptApplication.onNewDocument;
ScriptApplication.onNewDocument = Action;

Visual Basic Script

Action = ScriptApplication.onNewDocument
ScriptApplication.onNewDocument = Action

C++

VARIANT Action;
HRESULT hr = ScriptApplication.get_onNewDocument(&Action);
hr = ScriptApplication.put_onNewDocument(Action);