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
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.
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
Copy link to clipboard
Copied
You're right. I don't know why I assumed you meant the user-saved ones.