2022.2

Table Of Contents
Check the option Use as step description to display the text next to the icon of the plugin in the Pro-
cess area.
Run Script
Run Script tasks are used to run scripts that typically perform some kind of processing on the job file
received by the task. Scripts are often simpler to write than programs added with the External Program
action (see "External Program" on page384). However, they can be slower to execute.
The Run Script task can be used either as an Action or a Condition. When dragging and dropping a
Run Script task on a given process, you select whether to use this task as an Action or a Condition from
a contextual menu. (See also: "About branches and conditions" on page115.)
For more information on scripts, what languages are supported and how to write scripts and conditions,
please see the related chapter, "Using Scripts" on page117.
Input
Any data file, in any format.
Processing
The script is executed. The script can modify anything such as the data file, Job Info variables,
Metadata, or even other files on the operating system.
Output
Whatever file the Run Script action generates, Metadata it modifies or creates, etc.
Note: When using Run Script as a Condition, the output of the task can be within the branch or
on the main trunk. To control the output, use the "Script.ReturnValue" on page145 variable in
your script.
Properties
The Script Editor menu options are as follows.
l
File
l
Import: Lets you open an existing script from an external file. This can be a .vbs, .js, .pl or
.py file for language-specific scripts, or .txt for any of them.
l
Export: Lets you save the current script as a file.
l
Print: Prints the current script.
Page 428