Managing FrameMaker Images

Last week, I posted a request on the Framers and FrameScript mailing lists, requesting your “favorite” FrameMaker bottlenecks. By bottlenecks, I mean the tedious, error-prone FrameMaker tasks that you have to perform. Or, it could mean a missing feature that you wish FrameMaker had.

I received a hand full of thoughtful responses, but one request I think would be the most useful would be a way to manage FrameMaker images. Here is an excerpt from the email I received:

My bottleneck is graphics — naming graphics consistently, and then finding and updating graphics in a document/book and getting rid of old graphics no longer used. For example, for a current application to which I am writing, I am having to document a Wizard that does function “X”. I am now on my third iteration of this wizard and all of the pages in the wizard have changed again. I need to recapture 10 screenshots and replace them in my current document. I know that I can save the new captures with the same name as the old captures and in the same location because I import by reference but, that’s not really handy for me because the previous captures are named RunWizard_Page1, RunWizard_Page2, etc. and >>NOW<< the Wizard is going to be named the Project Wizard and so I would like to take new captures name them ProjectWizard_Page1, etc. and somehow get these to replace my old captures rather than having to reimport, save them with the new name and/or delete the old named captures. Am I asking for the moon?

It occurred to me that this task might be best handled outside of FrameMaker and in an Excel spreadsheet. Here are the advantages I see:

  1. You can quickly extract and manage a large amount of image data by going from FrameMaker to Excel via FrameScript.

  2. You can use Excel’s tools to quickly analyze the image data by sorting, rearranging columns, etc.

  3. You can use Excel’s find/replace function to quickly change the image data you want. The image file and path could be listed in separate columns in the spreadsheet, making it easier (and safer) to do find/replace on just folders or file names.

  4. You can extract image data from multiple books and combine them into a single spreadsheet and update hundreds of common images at once.

This would basically be done with two FrameScript scripts: the first would extract the data into a .CSV file, which can be opened in Excel. The second script would update the image paths in the FrameMaker documents from the content of the Excel file. Both scripts would run in seconds, even with large amounts of image data.

What do you think? If this solution appeals to you, or you have any suggestions for making it better, I would love to hear from you.

–Rick

Leave a Reply

Your email address will not be published. Required fields are marked *