Programmer's Guide > Interfaces > Application interface > getScriptContext method
  
getScriptContext method
Returns an IDispatch pointer to a ScriptContext object for the running script specified by the name parameter. This method is only available in the COM binding of the Application interface.
getScriptContext(name )
Parameters
Stringname
Specifies the name of the running script. The script name is not the file name. It is one of several possible names: the name passed to CreateScriptContext, a constructed name that is unique to the dialog for the script context in a XUI dialog, "EpicJS" for the global JScript context, or "EpicVBS" for the global VBScript context.
Returns
ScriptContext. The ScriptContext object or null if the named script does not exist.
Throws
AOMException
Raised if Active Scripting is not supported in this version of Arbortext Editor.