2019.2

Table Of Contents
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505).
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 page885.
Features that are specific to Control Scripts are listed in the "Control Script API" on page1351.
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 page902.
For more information about Post Pagination Scripts and their use, see "Post Pagination
Scripts" on page900.
Features that are specific to Control Scripts are listed in the "Post Pagination Script API" on
page1385.
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.
Most of these objects and functions are also available in Control Scripts ("Control Scripts" on
page885) and Post Pagination Scripts ("Post Pagination Scripts" on page900).
For objects and functions restricted to Control Scripts see "Control Script API" on page1351,
and for the Post Pagination Script API see "Post Pagination Script API" on page1385.
The basics of script-writing in the Designer are explained in the following topic: "Writing your
own scripts" on page853.
Page 1287