Copy link to clipboard
Copied
Hi All -
I am working on a large unstructured book in FM11. There are tons of figures (screen shots) residing in the Figure folder(s) that are no longer applicable and just taking up space.
Is there a script or a way to weed out and gong unused screen shots?
Any help would be appreciated.
Copy link to clipboard
Copied
How about …
I've just checked, and the <$referencename>
building-block helpfully pulls in the path as well as the filename
There may well be other ways, including scripts …
Copy link to clipboard
Copied
Appreciate your reply.
Unfortunately, I've never written a batch file or used a building-block to reveal filename paths.
Copy link to clipboard
Copied
open .book
So far so good … now adjust the LOR if necessary
This is the line that pulls in the information you're after; mine reads <$referencename>{tab}<$filename>. The elements between angle brackets are the building blocks, a concept you'll also come across when defining cross-references and autonumbering.
En passant, I can only envy all of you out there who are allowed to install scripts like responsible adults …
Copy link to clipboard
Copied
Thanks so much FieryPantone! I have followed your latest instructions and now have an 18 page LOR.fm doc with tons of single line entries that include figure filename paths, dpi info, and page numbers. (Example: Figures/Chapter 06/Fig 06_20a.png @ 175 dpi Displaying_Data_Graphic_Views.fm 144) Please let me know what I need to do next.
Copy link to clipboard
Copied
Fig 06_20a.png
copy "Fig 06_20a.png" ..\
to copy all the files in your list into the required directoryobservations:
Copy link to clipboard
Copied
re: see how much easier a script can make things <rofl>
I wrote a similar one for FM7 (on Unix) that massaged the MIFs. It took several iterations to catch a critical mass of oopsies, such as Text Insets having unique syntax vs. images. As I recall, it did handle spaces in file paths (which I agree are poor stewardship), and threw warnings on files/paths containing commas (which are a problem for some version of Windows FM). It would not have handled a book of books, nor insets with insets and other creative structuring.
Copy link to clipboard
Copied
Appreciate your time on this FieryPantone, but you lost me on create a batch file.
My hopes and dreams of weeding out unused figures seems to be more trouble than it's worth.
Copy link to clipboard
Copied
Don't lose heart … tidying up your graphics directory is certainly worth the effort.
Batch file in a nutshell: when you open a DOS box/terminal, you can issue a single command – for example, "move {thisFile} to {thisDirectory}". A simple batch file holds a whole stack of these commands, and saves you a lot of time and typing. Start from Batch file - Wikipedia, the free encyclopedia or find a colleague who is happy working with the command line*.
* command line – just another way of referring to DOS box/console/terminal
Copy link to clipboard
Copied
re: My hopes and dreams of weeding out unused figures seems to be more trouble than it's worth.
Scroll down. Arnis provided the pointer to the freebie script. Get it. Then follow the steps I outlined above it.
Copy link to clipboard
Copied
re: There may well be other ways, including scripts …
I've not used this feature, so don't know what exact dir name is created.
Copy link to clipboard
Copied
Thanks so much for your reply Bob, however I cannot locate the archive extension download you mentioned.
Copy link to clipboard
Copied
The book archiving extendscript and background info can be found here: Create a Book Packager using Extendscript « TechComm Central by Adobe
The direct link to the script is: http://blogs.adobe.com/techcomm/files/2011/07/Archive-v2.zip
Copy link to clipboard
Copied
Whatever else you do, keep a copy of the graphics that you believe you no longer need because they are not referenced by your documents. You might later discover that they are used in your documents, but have been imported as a copy, and so do not appear in a list of references. Whereas you could try copying them back out of the FrameMaker document, it's better to have the original source.