Manage scripts

FrameMaker includes a script catalog that allows you to easily manage your scripts. Launch the catalog from File > Script > Catalog.

The Catalog looks as follows:

Scripts Catalog

sc_script_library.png

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:

To add a script as a favorite, click Add. Select the script from the script browser and click Select. The script is then added as a favorite.

To remove a script from the Favorites list, select the script and then click Remove.

Click Refresh to refresh the list of favorite scripts.

To mark a script as an Autorun script, select the script and click Move To AutoRun. The script is then copied from its exiting location into the autorun (startup) folder.

Manage favorite scripts

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

You can perform the following operations from this screen:

To add a script as a favorite, click Add. Select the script from the script browser and click Select. The script is then added as a favorite.

To remove a script from the Favorites list, select the script and then click Remove.

Click Refresh to refresh the list of favorite scripts.

To mark a script as an Autorun script, select the script and click Move To AutoRun. The script is then copied from its exiting location into the autorun (startup) folder.

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.

<Fm_install_location>\startup

<user’s home folder>\startup

All scripts are run in alphabetical order.

You can perform the following operations:

To add a script as an autorun script, click Add. Select the script from the script browser and click Select. The script is then placed in the startup folder and added to the autorun list.

To delete a script from the autorun list, select the script and click Delete.

Click Refresh to refresh the list of favorite scripts.

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 unregis­tered. 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.

Other features

There are two features that are common to every script type that you can manage through the catalog: view and delete broken scripts and select, edit and run a script.

View and delete broken scripts

When a script that has already been added to the catalog is moved or deleted from its current loca­tion 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.


September 30, 2016

Legal Notices | Online Privacy Policy