ExtendScript of the Week : Restore WindowTuesday, January 10 2012 @ 9:22 AM, By navneet
This week in “Extend Script of the Week” initiative we will showcase an extend script which restores the window location, zoom and other display settings available under View menu of the FrameMaker document . This script demonstrates how to use Extend Script to retrieve display specific document properties and apply these settings on other FM document.
Information about the Scripts :
- ZIP file contains script file and sample .ini files. RestoreWin.jsx loads the menu and calls the function to execute the work flow. All function definition is present in this script file.
- The script works on FM/MIF document in both structured and un-structured FrameMaker.
- Script creates two initialization files AutoRestore.ini and Restore.ini in AppData location.
- Script creates a new menu “Restore Window” which has three commands “Save Current State”, “Restore State” and “Auto-Restore”.
- “Save Current State” command saves the display and zoom settings of active document in Restore.ini. It always delete the previously saved settings and re-create .ini file.
- “Restore State” command retrieves the saved settings and apply on the active document.
- “Auto-Restore” command toggles the automatic restoring On and Off. When enabled, saved window settings will get applied on active document automatically.
Steps to Install :
- Download the zip file from Restore Window
- UnZip the file and Place “RestoreWin.jsx in startup folder located at “C:\Program Files\Adobe\AdobeFrameMaker10\startup”
How to use the Script?
- Launch FrameMaker
- Open a Frame document
- New menu “Restore Window” will get created with three commands.
- Click on “Save Current State” to save the current display settings.
- Click on “Restore State” to apply the saved settings on active document.
- Click on “Auto-Restore” to toggle On/Off auto-restore functionality.
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
FrameMaker Engineering Team
(Resources: Restore Window )