8.8

Table Of Contents
External Program action (see "External Program" on page321). However, they can be slower
to execute.
The Run Script action task can be used either as an action or a condition. When dragging and
dropping a Run Script action task on a given process, you select whether to use this task as an
action or a condition from a contextual menu.
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91.
Input
Any data file, in any format.
Processing
The script is executed. The script can modify anything such as the data file, job infos, 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119
variable in your script.
Properties
The ScriptEditor menu options are as followed:
l File
l Import:Lets you open an existing script froman external file. This file can be in
.vbs, .js, .pl or .py 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 337