You all must be familiar with the great power that lies in ExtendScript. With the scripting support in FrameMaker 10 you can easily automate time-consuming and repetitive tasks.
This Archive or Packager, which I am going to describe here, is one such utility developed using FrameMaker Scripting support.
It copies a book to a target folder, given by the user, and gathers all the assets for that book and its chapters into this archive directory. All references in the documents are then made to point to these files. Once a book has been archived, you can zip the directory to create a compressed self-contained archive of your book. It handles all components of hierarchical books i.e. Folders, Groups, Folder Templates and nested books. Works on structured and unstructured documents as well.
Components that are archived:
- Book Chapters
- Referenced Graphics, multimedia and flash content
- Poster files applied on multimedia
- External cross-references
- Text insets
- Open the book or document you want to archive.
- Choose File -> Script -> Run and select the script Archive.jsx. This will create a new menu item Archive.
- Choose the menu command:
File > Utilities > Archive Book (if a book file is active)
File > Utilities > Archive Document (if a document file is active)
For further details see the attached script.
You can develop and use such similar utilities to eliminate manual effort and increase productivity. Do try the script and let us know your valuable feedback!
With best regards,
Adobe FrameMaker Engineering Team