Run Script
Instruct the wizard to execute a script (including parameters as required). Scripts can be written in any of the following languages:
-
VBScript
-
JScript
-
Perl
-
PScript
-
Python
If your script contains special characters, save it to a file and run it from there. Running such scripts directly may result in the removal of special characters — this is a known limitation. This applies specifically to JScript (.js) or VBScript (.vbs) files executed using the cscript
command.
To run your script, use the RUN Script Advanced Command feature with the following syntax:
cscript [options] [scriptname] [arguments]
Example
cscript C:\path\to\script.js
-
Enter the script code or load it from a file.
-
Specify any parameters for running the script (separated by spaces).
-
Select the language in which the script is written.
-
For Python, you are given the option to specify which version of Python will be used to run the script: the Nintex-installed version or a version installed on the client machine.
-
-
Specify a timeout (i.e., if the script does not begin to run within this time frame, the wizard will move on).
-
Tick this checkbox to use custom character encoding, then select the encoding set you wish to use.
Custom encoding isn't relevant nor supported for Python.
-
Enter the name of the variable into which you'd like to place the returned result.
-
Languages requiring specific code to return a value:
-
VBScript: WScript.StdOut.Write("My return value")
-
JScript: WSH.StdOut.WriteLine("My return value")
-
Python: print([returnvalue])
This field is relevant only for a script that is designed to return a result
-
-