Programmer's Guide > Interfaces > Application interface > createScriptContext method
  
createScriptContext method
Creates a ScriptContext object that may be used to load, compile, and execute scripts using the Microsoft Windows Script engine. This method is only available in the COM binding of the Application interface.
createScriptContext(language, name)
Parameters
Stringlanguage
Specifies the name of the Microsoft Windows Script language to initialize the script context. The name must be either "VBScript" or "JScript", the ProgID values of the respective script language. A ProgID is the version-independent, user-friendly name of the GUID (Globally Unique Identifier) found in the Windows registry. Any ActiveScript-compatible script language can be named and used, but only VBScript and JScript are supported.
Stringname
Specifies the name of the script.
Returns
ScriptContext. The IDispatch pointer to the ScriptContext object. If the object creation fails, the method returns null.