Skip to main content
Known Participant
August 11, 2016
Question

Is there any way to rename book file names 'in bulk'?

  • August 11, 2016
  • 1 reply
  • 497 views

Before I post a feature request, I'd like to know if there is any way to change book file names other than by doing it one file at a time in the book. I can't be the only person who has needed to rename a set of book files all in the same way. For example, change book files from Alpha-1Intro, Alpha-2Getting Started, Alpha-3Doing X, and so on, to Beta-1Intro, Beta-2Getting Started, etc. For these cases, a filename "bulk replace" function that would allow you to change part of the names in the same way would be so helpful. Is this asking too much, or is it too unique a need? Thanks

This topic has been closed for replies.

1 reply

Legend
August 12, 2016

You mean, keep the book structure but update the chapter files it points to? Save [a copy of] the .book file as .mif, and turn your text editor loose on the  FileName constructs!

<FileName `<c\>Alpha-2Getting Started.fm'>

Save the updated .mif file with its own name, of course, then open it in FM. You'll probably* need to tweak any generated files such as the ToC.

* probably is forum shorthand for can't immediately remember the exact details, but thought I'd better mention it in case

Jeff_Coatsworth
Community Expert
Community Expert
August 12, 2016

LOL – love it – probably*