You are here: Scripting Techniques > Working with Scripts > Assigning a Script to a Style

Assigning a Script to a Style

In order for a script to be executed during compilation, you must assign it to a style as follows:

1.   Highlight the Paragraph Styles or Character Styles item on the project editor tree list.

2.   Select the name of the style to be edited from the right pane.

3.   In the properties pane for the style, click the box to the right of the Script property and choose the appropriate script from the drop-down.

Note: You can assign one script to multiple styles. A script must be created in the project before it can be assigned to a style.