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

Access the list of GREP searches with scripting

People's Champ ,
Nov 13, 2011 Nov 13, 2011

Copy link to clipboard

Copied

Hi,

Does anyone know if there's a way of accessing the list of saved GREP

searches in a document using JS?

Thanks,

Ariel

TOPICS
Scripting

Views

958

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
Enthusiast ,
Nov 13, 2011 Nov 13, 2011

Copy link to clipboard

Copied

They are XML files located at:

Folder.userData.absoluteURI + "/Adobe/InDesign/Version 7.0-ME/en_GB/Find-Change Queries"

Of course the version would have to be changed according to what version of InDesign you would be using.

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
People's Champ ,
Nov 13, 2011 Nov 13, 2011

Copy link to clipboard

Copied

Thanks Fred.

I see that Peter Kahrel has a massive script called "Grep query manager"

and there he gets hold of the query file as follows:

var QueryFolder = app.scriptPreferences.scriptsFolder.parent.parent

+ "/Find-Change Queries/Grep/";

In fact, I see that there are two folders. One is the InDesign preset

GREP queries, and the other is the user-saved GREP queries (the one you

gave the path for).

Thanks,

Ariel

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
Enthusiast ,
Nov 13, 2011 Nov 13, 2011

Copy link to clipboard

Copied

LATEST

You're right. I don't know why I assumed you meant the user-saved ones.

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