ExtendScript of the Week: Change Styles (Paragraph / Character / Table)

This week in “ExtendScript of the Week” initiative we will showcase an ExtendScript which will Find/Change Paragraph Styles, Character Styles and Table Styles on the body page of the document. This script demonstrates one of the several workflows where ExtendScript can be used to do tasks in an intuitive and easy way. The script works on Book as well as single FrameMaker / MIF files.

Info

Please note that there is a newer version of this script with much improved functionality here.

About this Script

Steps to Install

  1. Download the zip file from ChangeStyles
  2. Unzip the files and copy “ChangeStyleMenu.jsx” and “ChangeStyle” folder in startup folder located at “C:\Program Files\Adobe\AdobeFrameMaker10\startup”

How to use the Script

  1. Launch FrameMaker
  2. Open a Book File or FM/MIF File
  3. Run Change Styles from “File -> Utilities -> Change Styles …
  4. This will run the script and ask you for inputs to change the style.
  5. Choose the style to be changed in ‘Find’ dropdown.
  6. Choose the style to be applied in ‘Change’ dropdown.
  7. Click on Change button.
  8. If the script is run on an open FM/MIF file the styles will be changed without saving the document.
  9. If the script is run on a Book, all the FM/MIF components which are closed are opened invisibly, the styles are changed and then the files are closed after saving.

I hope this will prove useful to many folks and you can add extra functionality as per your requirements to these scripts to make it even more powerful.

Regards,
Bharat Prakash

(Resources: ChangeStyles)