Copy link to clipboard
Copied
Does anyone know how to generate a list of file names in a book?
Indirectly, you can save the .book file as a MIF. Then for the MIF use a text editor to look for "<FileName". If your editor, such as UltraEdit, has the capability to list all lines containing the search string, then you can copy all hits to the clipboard and paste it to another file for the listing.
Copy link to clipboard
Copied
Indirectly, you can save the .book file as a MIF. Then for the MIF use a text editor to look for "<FileName". If your editor, such as UltraEdit, has the capability to list all lines containing the search string, then you can copy all hits to the clipboard and paste it to another file for the listing.
Copy link to clipboard
Copied
Thanks!
Copy link to clipboard
Copied
Your question isn't clear. What do you mean by "file names in a book?" The
files that make up the book? Files named in the text? Names of graphics
files or text inset files that are imported by reference? Names of graphic
files that were copied into the text? Etc.
Copy link to clipboard
Copied
To generate a list of filenames you could create a new paragraph format, e. g. #Filename. Then insert a #Filename paragraph that contains only FM's filename variable. Repeat this for every chapter of your book.
Finally generate a list of paragraphs for the book, which lists all #Filename paragraphs.You may want to remove <$pagenum> from the LOP reference page so that it doesn't appear in the output.
If you have that generated list, you can either include it as part of the book or save as text to get a list of files externally. If you are just after the filenames, Arnis' suggestion is probably easier.
Johannes