Remove Unused Formats
RemoveUnusedFormats.fsi
Problem description
When the formats of documents are not consistently maintained through templates, the format lists of the FrameMaker documents may sometimes grow out of control.
To analyze the formats actually used by the documents, it is helpful to delete all formats that are not used at first. FrameMaker does not provide such a function to clean up the format lists.
Function description
The script deletes all unused formats and master pages of the current document
or all documents of the current book.
Furthermore, hidden formatting, which may lead to messages regarding unavailable fonts (e.g. formatting in straddled table cells or in invisible table titles), can be cleaned up.
Reference pages can also be deleted, whereby these are not ‘used’ directly. The user needs to check whether reference pages are still needed.
Marker types cannot be deleted with FrameScript (error in the FrameMaker API).
The number of deleted formats will be displayed in a dialog.
The FrameMaker console lists the deleted formats in detail.
Requirements
- FrameMaker 6.0 or higher
- FrameScript/ElmScript 4.1 or higher
Notes
The script works with structured and unstructured documents.



Klaus Müller
