Run multiple GREP queries

Some replacement tasks cannot be handled by a single Find/Change operation. It's not really possible, for example, to add thousands separators to numbers with a single replacement operation. Instead, you need three queries for that.

Unfortunately, InDesign doesn't let you chain queries into a single action. The script on this page does let you do that. When you run the script, all GREP queries from InDesign's and the user's folders are displayed in a list.

Run GREP queries

Select the queries you want to run and click Run or press Enter/Return to execute the selected queries one after another.

Note: The selected queries are executed in the order you see in the list. If you want to change the order of execution you'll have to change the names of the queries.

For a more elaborate script to run and manage queries, see the GREP query manager script.

Version history

16 Sept. 2015: Posted.

Useful script? Saved you lots of time?

Consider making a donation. To make a donation, please press the button below. This is Paypal's payment system; you don't need a Paypal account to use it: you can use several types/brands of credit and debit card.

Peter Kahrel's paypal account

Show script (right click, Save Link/Target As to download)

Back to script index

Installing and running scripts

Questions, comments? Get in touch