Util.ScriptLanguage Property

 Util.ScriptLanguage  (read-write, String)
 
Sets the language to be used for this script. Value must match one of those in the console language dropdown list.

Syntax

Util.ScriptLanguage [= String]

The property syntax has these parts:

Part Description
Value (String) Sets the language to be used for this script. Value must match one of those in the console language dropdown list.

Remarks

Mainly useful to an external automation controller which is running a script remotely. Also useful if a script wants to know what language it is running under.

If an external automation controller (such as Excel) loads a script whose file name does not end in a recognizeable extension (such as .vbs, .js, etc.) then it is required that the controller set the proper language for the script using this property before starting the script. See Util.LoadScript(). The following table lists names of the language file extensions recognized in this release of ACP: Any language with an Active Scripting compliant interpreter may be used with ACP, this is just a list of language file extensions that ACP recognizes. To be safe, set the ScriptLanguage property yourself.
Ext Name Language
.VBS VBScript Microsoft Visual Basic, Scripting Edition
.JS JScript Microsoft JScript (JavaScript approximation)
.PLS PerlScript Perl 5 as an ActiveX Scripting language
.PYS Python Python as an ActiveX Scripting language

NOTE: The language must be installed on your system. In particular, PerlScript and Python are not part of the standard set of languages supplied by Microsoft. For additional info see Scripting Guide info on other languages.