2022.2

Table Of Contents
TypeadotafterthenameofthefunctionorobjectandpressCtrl+spaceagaintoseewhichfeatures
aresubsequentlyavailable.
Formorekeyboardshortcuts,see"Keyboardshortcuts"onpage953.
Designer API
The"StandardScriptAPI"belowdescribestheobjectsandfunctionsthatareavailableintemplate
scripts,createdinsidetheScriptspane.Templatescriptschangethecontentsofsectionsinatem-
plate.
Note: InaPrintcontext,thescriptsintheScriptspanerunonceforeachsectionandoncefor
eachMasterPage(see"MasterPages"onpage462).
Control Script API
Control ScriptsareaspecialkindofDesignerScripts.Theydon'ttouchthecontentofthesections
themselves,buttheychangethewayatemplateisoutputted,forexamplebyselectingoromittingsec-
tionsfromtheoutput.
FormoreinformationaboutControlScriptsandtheiruse,see"ControlScripts"onpage838.
FeaturesthatarespecifictoControlScriptsarelistedinthe"ControlScriptAPI"onpage1271.
Post Pagination Script API
PostPaginationScriptsareruninaPrintcontextafterthecontenthasbeenpaginated.Becausethey
cansearchthroughtheoutputofallPrintsections,andmodifyPrintsections(oneatatime),theymay
beusedtocreateaTableOfContents(TOC),asexplainedinthetopic:"CreatingaTableOfContents"
onpage852.
FormoreinformationaboutPostPaginationScriptsandtheiruse,see"PostPaginationScripts"on
page850.
FeaturesthatarespecifictoControlScriptsarelistedinthe"PostPaginationScriptAPI"onpage1297.
Standard Script API
ThispageliststheglobalobjectsandfunctionsthatareavailableinStandardScripts,createdinside
theScriptspane.Clickthroughtoanobjectorfunctiontogetadescriptionandexamples.
MostoftheseobjectsandfunctionsarealsoavailableinControlScripts("ControlScripts"onpage838)
andPostPaginationScripts("PostPaginationScripts"onpage850).
ForobjectsandfunctionsrestrictedtoControlScriptssee"ControlScriptAPI"onpage1271,andfor
thePostPaginationScriptAPIsee"PostPaginationScriptAPI"onpage1297.
Thebasicsofscript-writingintheDesignerareexplainedinthefollowingtopic:"Writingyourown
scripts"onpage808.
Page 1169