2018.2

Table Of Contents
Designer API
The "Standard Script API" below describes the objects and functions that are available in
template scripts, created inside the Scripts pane. Template scripts change the contents of
sections in a template.
Note
In a Print context, the scripts in the Scripts pane run once for each section and once for each Master
Page (see "Master Pages" on page425).
Control Script API
Control Scripts are a special kind of Designer Scripts. They don't touch the content of the
sections themselves, but they change the way a template is outputted, for example by selecting
or omitting sections from the output.
For more information about Control Scripts and their use, see "Control Scripts" on page751.
Features that are specific to Control Scripts are listed in the "Control Script API" on page1162.
Post Pagination Script API
Post Pagination Scripts are run in a Print context after the content has been paginated.
Because they can search through the output of all Print sections, and modify Print sections (one
at a time), they may be used to create a Table Of Contents (TOC), as explained in the topic:
"Creating a Table Of Contents" on page767.
For more information about Post Pagination Scripts and their use, see "Post Pagination
Scripts" on page766.
Features that are specific to Control Scripts are listed in the "Post Pagination Script API" on
page1188.
Standard Script API
This page lists the global objects and functions that are available in Standard Scripts, created
inside the Scripts pane. Click through to an object or function to get a description and
examples.
Page 1100