2022.2

Table Of Contents
tocreatearegionfortheYear,thecodemightlooklikethis:
region.createRegion(190,20,210,25)
whichwouldcreatearegionlocatedneartheupperrightcornerofthepage.
That'stheonlysimilarity,though,sincethescriptforaPDFwouldhavetolookthroughtheentire
pageandprobablymakemultipleextractionsoneachonesinceitisn'tdealingwithsinglelines
liketheTXTexamplegivenhere.
FormoreinformationontheAPIsyntax,pleasereferto"DataMapperScriptsAPI"onpage360.
Objects
automation
ReturnsaScriptableAutomationobjectencapsulatingthepropertiesofthePlanetPressWorkflowpro-
cessthattriggeredthecurrentoperation.
Thisautomationobjectisavailableinallscripttypesandwithallfiletypes.
Note: TheautomationobjectavailableinDesignerscriptsisnotofthesametype.Ithasdif-
ferentproperties.
Properties
Thefollowingtableliststhepropertiesoftheautomationobject.Allpropertiesareread-only.
Property Description
jobInfo ReturnsaScriptableAutomationobjectcontainingJobInfo1to9valuesfromPlanetPressWorkflow(see"Fixedautomationprop-
erties"onpage324,andJobInfovariablesintheWorkflowOnlineHelp).
properties ReturnsaScriptableAutomationobjectcontainingadditionalinformation(ProcessName,OriginalFilenameandTaskIndex)
fromPlanetPressWorkflow(see"Fixedautomationproperties"onpage324).
parameters ReturnsaScriptableAutomationobjectcontainingthecustomruntimeparametersdefinedinthedatamappingcon-
figuration(see"Propertiesandruntimeparameters"onpage227).
AtruntimethisobjectalsocontainsanylocalandglobalvariablesdefinedbytheuserinPlanetPressWorkflow,toensure
compatibilitywithpreviousversions.
variables Deprecated;useautomation.parametersinstead.Bothpropertiescontainthesamelistofelements,butthevariables
propertyiskeptforbackwardcompatibilityandmayeventuallyberemoved.
Page 369