1.4

execution scope has been set to the relevant contexts or sections. So, setting the execution
scope of a folder saves processing time.
To change the execution scope of a script:
1. Put the script in a folder; see "Managing scripts" on page 380.
2.
Right-click the folder, and then click Properties.
3. Check the contexts and sections for which the scripts in this folder should run.
Note
Control scripts are always executed first, regardless of where they are in the Scripts pane.
They can not be excluded from execution for a specific context or section, using the
execution scope of a folder; see "Execution scope" on the previous page. What you can
do is disable the script or the containing folder; see "Enable/disable scripts" below.
Enable/disable scripts
A disabled script will not run at all when the template is merged with a record set to generate
output.
When you disable a folder, all scripts in the folder will be disabled.
To enable or disable a script or a folder:
l
On the Scripts pane, right-click the script or the folder and click Disable (if the script or
folder was enabled) or Enable (if the script or folder was disabled).
Import/export scripts
Scripts can be exported - one at a time - for use in other templates. To do this:
1.
On the Scriptspane, click on a script, and then click theExportbutton, or right-click a
script and selectExport.
2.
Give the script a name and click OK.
To import a script in a template:
l
On the Scriptspane, click theImportbutton. Find the script and clickOK
Page 382