Copy link to clipboard
Copied
This is the query:
and in UI it will find this - which is what I'm looking for:
but through scripting - it will also include the graphics below, from the next paragraph - that is also styled with "R-cena"...
What am I doing wrong ?
I've added ^...$ in the hope, that it will find only single line texts - but it still includes EVERYTHING after the "281,-"??
Copy link to clipboard
Copied
Looks like something is wrong with:
Call myInDi.LoadFindChangeQuery(myLQueryName, idSearchModes.idGrepSearch)
Because, if I enter the GREP query as a parameter for the GREP Search:
it works as expected:
but if run like this:
will return wrong results...
Yes - this query is slightly different than before - (...) instead of ^...$ - but it works when I execute search from script with this query - but returns wrong results when I try to load it as a saved query...
Can someone check if JavaScript works correctly ?
Copy link to clipboard
Copied
Can someone please check if JS is working OK? TIA
Copy link to clipboard
Copied
Hi.
More than a year later... I have posted that My GREP with style restriction does not work in InDesign server.
Your problem could be maybe related to mine. I have not yet a solution but reading the stored GREP and executing as script.
If you have another solution, please let us know.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now