Managing scripts

Understand how to manage scripts in Adobe FrameMaker.

In this topic

FrameMaker includes a script catalog that allows you to easily manage your scripts.

Choose File > Script > Catalog to open the Script Library.

Figure 1. Script Library
Managing scripts in FrameMaker using the Script Library

The catalog lets you manage favorite scripts, AutoRun scripts, and registered (notification) scripts.

Select the Favorites option in the catalog to manage your favorite scripts.

You can perform the following operations from this screen:

Manage favorite scripts

Select the Favorites option in the catalog to manage your favorite scripts.

You can perform the following operations from this screen:

Manage AutoRun scripts

Select the AutoRun option in the catalog to manage your AutoRun scripts.

AutoRun scripts are run automatically each time FrameMaker is launched. Any script that is placed in the following directories, becomes an AutoRun script.

All scripts are run in alphabetical order.

You can perform the following operations:

Manage registered (notification) scripts

Select the Registered option in the catalog to manage your registered scripts. Registered scripts are also called as notification scripts. These scripts are run when the events for which they are registered are triggered.

Notification is the internal mechanism through which a script registered for a particular event is run when the event is triggered.

Any script that is registered to run when an event is triggered is displayed in the notifications list in the catalog.

To unregister a notification script, select the script and click Unregister. The script is then unregistered. Once a script is unregistered, the script is not run, when the event for which it was previously registered is triggered.

Note: To add a notification script, see the section on notifications in the appendix.

View and delete broken scripts

When a script that has already been added to the catalog is moved or deleted from its current location in the file system, it is termed as a broken script.

To view such scripts, select the Show Broken Only option in the catalog. The catalog then displays all the scripts that are broken.

You can then delete such scripts from the catalog. When you delete a script, it is only deleted from the catalog and not from its location in the file system.

Select, edit, and run a script from the catalog

To run a script from within the catalog, select the script from the list and click Run.

To edit a script from within the catalog, select the script from the list and click Edit. The script is opened in the ExtendScript Toolkit editor.

To run a new script (not added to the catalog yet), select the option marked New and click Run. Then, select the script from the script browser and click Open.