Skip to main content
Inspiring
March 7, 2022
Answered

How to apply multiple GREP query at once.

  • March 7, 2022
  • 2 replies
  • 1217 views

Hi

 

I'm working on a book and there are some repeating problems in the text that I managed to solve by applying a sequence of 4 GREPs which I saved to GREP query, the thing is I can't apply them to the whole text because they'll cause other problems, so I have to do it manually, I wonder if I can do them with one shortcut using a script instead of doing those 4 GREPs one by one for each problem.

Note: some of the GREPs uses change format to a certain style.

This topic has been closed for replies.
Correct answer Peter Spier

This script by Peter Kahrel might be easier to use:

https://creativepro.com/files/kahrel/indesign/grep_query_runner.html

2 replies

Peter Spier
Community Expert
Peter SpierCommunity ExpertCorrect answer
Community Expert
March 7, 2022

This script by Peter Kahrel might be easier to use:

https://creativepro.com/files/kahrel/indesign/grep_query_runner.html

Community Expert
March 7, 2022

Look at FindChangeByList.jsx script which is shipped along with InDesign. Using this you can store your queries in the corresponding txt file and then the script applies it one by one. You can also control as to which object do you want the queries to execute, its i think at document, selection and story level.

-Manan

-Manan