59

image Searching and Editing Word Docs

While writing and editing technical books like this one, I end up with many folders containing different incremental versions of the manuscript. I want to search these to find the chapters that contain a keyword and open only the ones I need to fix something globally. I want my search tool to check the latest version and only open documents that contain that keyword as a whole word.

I developed a hybrid solution that is a UNIX shell script, which generates some AppleScript that calls a Visual Basic command inside Word. It all works predictably but requires some tricky escape coding to ensure that characters are ...

Get Developing Quality Metadata now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.