2021.2

Table Of Contents
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 page419). 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
page137.)
For more information on scripts, what languages are supported and how to write scripts and
conditions, please see the related chapter, "Using Scripts" on page141.
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 page174
variable in your script.
Properties
The Script Editor menu options are as follows.
Page 482