|
Run ScriptRun 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). 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. For more information on scripts, what languages are supported and how to write scripts and conditions, please see the related chapter, Using Scripts. InputAny data file, in any format. ProcessingThe 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. OutputWhatever file the Run Script action generates, Metadata it modifies or creates, etc. 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 variable in your script. PropertiesThe Script Editor menu options are as follows.
The other options of the window are:
With the Run Script action, the On Error tab is accessible by right-clicking on the action in your process and clicking Advanced Properties. The On Error tab will be triggered if your script has an execution error (such as syntax error, etc) as well as when raising an error from within your script. On Error TabComments TabThe Comments tab is common to all tasks. It contains a text area (Task comments) that lets you write comments about the task. These comments are saved when the dialog is closed with the OK button, and are displayed in the Task Comments Pane. Check the option Use as step description to display the text next to the icon of the plugin in the Process area. |
|