Could these 100 documents be considered individual elements of a book with the same master page governing all 100 docs? If so, you could use the book sync feature.
Create a book and add the docs to it. That will take a bit of a time. Then designate one of the documents in the book as the style source.
Then, make a change in the master for that one document and then sync all the documents in the book. You probably want to turn off all the sync options except master pages.
Regarding changing the naming convention, using VBScript, or some other batch processing Windows features, I'm afraid that's way out of my league.
However, when I have a single edit to make to 100 footers, I don't script it. (Partially because I write scripts at a glacially slow pace.) I generally use the Find/Change dialog. When I handle files like this, the footers tend to be in master pages, but this will change 'em even if they're on the live page.
1) I would open all 100 docs.
2) I would open the Find/Change dialog.
3) I would set the Search scope to All Documents, and I would make sure that ID was searching master pages. Like so:
4) Then I whack "Change All."
This will not work, of course, if "foobar" is part of your live text, and must remain unchanged.
Your other case - where you have to update control numbers - is a more complicated case. In my own situation, I knew I was going to be updating my own revision numbers every year or two for as long as I had the job. So i knew that a spot of prep work was going to be to my advantage in the future. (And lo, fifteen years later, I am still updating these forms in twelve languages as a freelancer, and i thank my lucky stars that I saw fit to make it easy in InDesign CS so many years ago.)
What I did was I typeset the rev numbers in their very own character style. I called it "RevDateStylee":
That way, I knew that my rev date (and only my rev date) was going to be updated in all 100 files.
Thank you so much for the detailed response. And you as well, Sandee!
You've given me a lot to chew on, but I wanted to go ahead and acknowledge your response because I think this is what I need.
These documents are all a little different, and unfortunately, the word (actually a URL) shows up throughout the body of some of these documents as well.
That said, the idea of better utilizing master files (or books) is something we will definitely keep in mind moving forward.
In the mean time, I think we will open up 10-15 at a time, and find/replace but manually select the URLs to replace. I will also look into that script forum you mentioned.
Anyway, thank you both!
Basically, I'm trying to change one word in the footer of about 100 documents. Instead of doing this manually, I understand I should be able to run a script and knock this all out at once.
For this purpose I wrote the batch processor script. It's quite easy to write a script for finding-replacing text/GREP which can be used from it.
Another more complicated use for autobatching is that I will potentially need to update the control number on all of these documents by a decimal point. E.g.: 111.1 would need to become 111.2 and 10.5 would need to become 10.6. If anyone is able to touch on these more complicated tasks as well that would be much appreciated.
For this task you can use, for example, the Price adjuster script written by Peter Kahrel.
There's also the Change All Numbers in a Document using Math script, but it didn't work for me at the first attempt (Peter's script did work ).