2020.2

Table Of Contents
features are subsequently available.
For more keyboard shortcuts, see "Keyboard shortcuts" on page1019.
Designer API
The "Standard Script API" on the next page 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485).
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 page890.
Features that are specific to Control Scripts are listed in the "Control Script API" on page1379.
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 page908.
For more information about Post Pagination Scripts and their use, see "Post Pagination
Scripts" on page906.
Features that are specific to Control Scripts are listed in the "Post Pagination Script API" on
page1415.
Page 1266