2018.1

Table Of Contents
used in Control Scripts, however. This is because Control Scripts differ from template scripts in
two ways:
l Control Scripts don't have a selector, like template scripts do.
A selector selects parts of the content of a section and stores them in the results
object, so that they can be modified in the script. As Control Scripts don't have a selector,
the results object can't be used there. Control Scripts don't touch the content -
meaning, the text flow - of the sections.
l Control Scripts run before all other scripts.
When a template consists of several contexts, and these contexts are combined in the
output - for example, when an Email is generated with the Print context as attachment - all
scripts run once for each context, but Control Scripts always go first.
automation
This object (of the type: Automation) encapsulates the properties of the PlanetPress Workflow
process that triggered the current operation.
Note
This object is only available in a Web context.
Note
The automation object available in DataMapper scripts is not of the same type. It has different
properties.
Properties
The following table lists the properties of the Automation object.
Property Description
jobInfos Returns an object containing JobInfo 1 to 9 values from PlanetPress
Workflow.
Page 1079