• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to apply multiple GREP query at once.

Participant ,
Mar 06, 2022 Mar 06, 2022

Copy link to clipboard

Copied

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.

TOPICS
Feature request , How to , Scripting

Views

499

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 07, 2022 Mar 07, 2022

This script by Peter Kahrel might be easier to use:

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

Votes

Translate

Translate
Community Expert ,
Mar 06, 2022 Mar 06, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 07, 2022 Mar 07, 2022

Copy link to clipboard

Copied

LATEST

This script by Peter Kahrel might be easier to use:

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines