2022.2

Table Of Contents
Tip: Todoaquicksearchforacertainscriptorpieceofcode,typeasearchtextinthefilterfield
locatedbelowthebuttonsintheScriptspane.
Doing a Preflight
InadditiontotheiconsandmessagesintheScriptspane,apreflightcanshowifyourscriptsfunction
asexpectedbeforegeneratingoutput:
1. Onthemenu,selectContext > Preflight.
2. SelectAll,orenteraselectionofrecords.Youcanspecifyindividualrecordsseparatedbysemi-
colons(;)orrangesusingdashes.Forexample:2,4,6-10wouldprintpages2,4,6,7,8,9and10.
3. ClickOK.
Preflightexecutesthetemplatewithoutactuallyproducingoutput.Whenadatamappingconfiguration
isused,anypre-andpostprocessorsarerunaswell.
ThePreflightwindowdisplaysanyissuesonceit’sdone.Itwilltell,forexample,whichselectorswere
notencounteredinthetemplate.
Double-clickascriptwarning/error(eitherinthePreflightProgressdialogorinthePreflightResult
view)toopenthescriptinthescripteditor.Therelevantlinewillbehighlighted.
Tip: Beawarethatscriptsruninaspecificorder(see"Thescriptflow:whenscriptsrun"on
page824).Whenonescriptunintentionallyinfluencestheresultsofanotherscript,changingthe
orderofthescriptsintheScriptspanemayhelp(see"Changingtheorderofexecution"on
page814).
Note: Animagewithanunknownfileextensionisrepresentedbyaredcrossintheoutput,but
noerrorisloggedunlesstheimagereferstoalocalfilethatdoesnotexistondisk.
Imagefileextensionsthatthesoftwarerecognizesare:AFP,BMP,EPS,GIF,JPG/JPEG,PCL,
PDF,PNG,PS,SVG,andTIF/TIFF.
Using the Script Debugger
TheDesigner'sScriptDebuggerallowsyoutosetbreakpointsinscriptsandstepthroughthem.Itsim-
ulatesanoutputrunwithonlythecurrentrecordandshowsanoverviewofthestateofalllocaland
globalvariables,whiletheWorkspacedisplaysthepartiallymergeddocument.
TherearetwowaystostarttheScriptDebugger:
l
ClicktheDebug ScriptsbuttoninthetoolbaroftheScriptspane.TheScriptDebuggerwill
pauseandacceptinputassoonasitprocessesthefirstscript.
Page 818