Sample Scripts/Utilities shipped with FrameMaker10
Thursday, March 17 2011 @ 7:54 AM, By Amit Agarwal
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
||Simplest script – Just to get started with Extendscript! More here
||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
||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)
||Traverses through a hierarchical book structure.
- An example to traverse the Folder and Group hierarchy.
- Creates log of the traversal in a text file.
||An example to show how to read the elements’ content in an XML file.Exhibits node by node traversal.
||A useful script to suppress all alerts. This script uses notifications to suppress all FrameMaker alerts.
||The client opens all components of the book-in-focus and washes them via MIF:
- Save the MIFs back to .FM
We had added usage instructions in the Scripts/Clients (but you know how internal use code is : ). We hope these would be helpful!
Download Zip File: ScriptsAndUtilities