Hello Framers,
This blog is to share a few utilities written by the engineers of FM team. These scripts & utilities had been developed by engineering for internal use but on a later stage it was decided to ship it for the end-user with FrameMaker10. These are present in FrameMaker10 installation folder (a folder named $FMHOME\Samples\ScriptsAndUtilities). These simple scripts/utilities (described briefly in the table below) could be used:
– Either to get started with ExtendScript
– Or as live examples for solving a workflow
List of Scripts/Utilities
Folder Name |
Type |
Brief Note |
Hello World |
Extendscript |
Simplest script – Just to get started with Extendscript! More here |
Conditional Text |
Extendscript |
Create several PDF outputs from a single-source based on the conditional text. NEEDS CUSTOM EDITING. (Attached modified .jsx file with modifications – FM_Outputs_CondText)
– Specific Conditional Text is shown/hidden
|
Flatten Conrefs |
Extendscript |
This script flattens all the conrefs present in all the topic refs of the Active Ditamap/Topic (ditamap needs to be open in document view) |
Hierarchical Books |
ExtendScript |
Traverses through a hierarchical book structure.
– An example to traverse the Folder and Group hierarchy.
– Creates log of the traversal in a text file.
|
Read XML |
Extendscript |
An example to show how to read the elements’ content in an XML file.
Exhibits node by node traversal. |
Suppress Alerts |
Extendscript |
A useful script to suppress all alerts. This script uses notifications to suppress all FrameMaker alerts. |
BookMIFWash |
API |
The client opens all components of the book-in-focus and washes them via MIF:
– Save the MIFs back to .FM
|
|
We had added comments in the scripts at several places for ease (but you know how internal use code is : ). We hope these would be helpful!