2021.2

Table Of Contents
1. On the Scripts pane, click on a script, and then click the Export button, or right-click a
script and select Export.
2. Give the script a name and click OK.
To import a script:
l On the Scripts pane, click the Import button. Find the script and click OK
Files that a script may refer to, such as images, snippets and fonts, are not exported or imported
together with a script.
Test the script to make sure that all files are present in the template and that the script's selector
matches something in the content of the template; see "Testing scripts" below.
Testing scripts
The quickest way to test that scripts work as expected, is to click the Preview tab at the bottom
of the workspace.
You can even do this while creating a new script, either with a Script Wizard or in the expanded
script editor. Click Apply at the bottom of the script editor to see the effect of the script on the
Preview tab of the Designer.
Note that scripts that use values of data fields can only be effective when a data file or data
mapping configuration is open. See "Loading data" on page792.
Note
Post Pagination Scripts run only when a Print section is previewed or outputted.
To verify the results of Post Pagination Scripts on a certain Master Page, preview the
Print section to which that Master Page is applied.
Testing for errors
Information in the Scripts pane
One way to see whether a script is functional is to take a look at the Scripts pane.
Page 887