Copy link to clipboard
Copied
We're in the process of cleaning up our network drive by moving relevant files to a new drive and deleting duplicate or other unnecessary files. We have a lot of files and it would not be practical to do this migration in mass so we would like to do it piecemeal, deleting files as they are migrated to the new drive.
In the past, if a graphic file was used in multiple documents, we would link the documents to the graphic, wherever the graphic was first stored (which has cause many problems). Moving forward we want to keep all the graphic files with the document that uses them (even though that will create multiple copies of the same file).
My concern is that a graphic file in one folder may be linked to multiple documents and if we delete that graphic, when it comes time to migrate the other linked documents, it will be cumbersome to track down the missing graphic.
Does anyone know an easy way to identify all of the documents that are linked to a graphic? Is there a Where Used script for graphics or something?
We are using FrameMaker 8 on Windows XP Professional.
Thanks,
Tim
Copy link to clipboard
Copied
I know of a Perl script that separates used from unused graphics: http://members.shaw.ca/philip.sharman/graphix/graphix.htm
You will also need a Perl environment.
We've tested this script with Strawberry Perl: http://strawberryperl.com/
It is working, but you need to map network drives. It doesn't work with UNC paths.
HTH
Susanne
Copy link to clipboard
Copied
Any grep-like tool (search & replace) will let you find the graphics filenames imported by reference in the binary .fm files. Just use the MIF syntax for the relative path or just the filename. The output in many of these tools can be sent to a file where you can then can collate and sort the results afterwards.
Copy link to clipboard
Copied
You might consider using Bruce Foster's very-low-cost Archive utility to transition your docs from the old to the new locations. Arcguve will grab all needed graphics for each book and place them in a "new" archive location, plus change pathnames as needed, so your original graphics would still be in-place for any other docs that need them and the new "archived" files would be updated accordingly.
http://home.comcast.net/~bruce.foster/products.htm
Copy link to clipboard
Copied
From the days when dinosaurs roamed the earth and films were in black and white ... you could, if so minded, save out your source files as .mif and then let grep loose on them <g>
Copy link to clipboard
Copied
And to follow up on this....
After you've used Archive to collect all the used graphics, make a backup copy of your source graphics directory.
Then recreate the same directory name, and copy all the graphics that each run of Archive collected back into it. That's your new graphics collection, containing only the graphics that are in use -- all the original FM files are still pointed to the correct graphics. You're done.
And you have the Archive files as an additional backup -- copy them someplace safe, but don't delete 'em.
Cheers,
Art
Copy link to clipboard
Copied
At the end of all of your books, add and generate an Index of References that includes imported graphics.
This will give you alphabetised lists of all used graphics files. Combine the lists into one file, sort the entries (either by putting them into a table or generating an alphabetical List of Paragraphs of them). You can then delete (or move to backup) all graphics files that are not on the master list.
The generated IOR file at the end of each book is a pretty standard authoring tool. If you need to update a graphic then you can refer to the file to see all the FM places in which it is used.
Dave