1.5

Table Of Contents
The following script sets the background color of a specific table cell in an email to red if the
value of the field TOTAL has a negative value in the current record.
if(record.fields.TOTAL<0) {
query("#total").attr("bgcolor","red");
}
automation
This is a ScriptableAutomation object that encapsulates the properties of the PlanetPress
Workflow process that triggered the current operation.
Note
In the Designer, currently this object is only available in a Web context.
Properties
The following table lists the properties of the Automation object.
Property Type Description
JobInfo ScriptableAutomationProperty Returns a ScriptableAutomation object
containing JobInfo 1 to 9 values from
PlanetPress Workflow
Properties ScriptableAutomationProperty Returns a ScriptableAutomation object
containing additional information (file name,
process name and task ID) from PlanetPress
Workflow
Accessing automation properties
To access JobInfo 1 to 9 (defined in Workflow):
automation.jobInfo.JobInfo1;
To access ProcessName, OriginalFilename or TaskIndex (defined in Workflow):
Page 739