Skip to main content
Inspiring
November 24, 2020
Answered

Indesign Javascript - GREP - Direction

  • November 24, 2020
  • 1 reply
  • 809 views

Hi All

I am writing a GREP script to find and change some text and in the dialog box I have the option to set the direction that the find\change progresses.

 

Does anyone know of a way that I can set the direction of the find\change in my js script?

I assume there is a setting that I can apply but I haven't been able to find the syntax for one.

 

Thanks in advance

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

app.findChangeGrepOptions.searchBackwards = true/false

 

P.

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
November 24, 2020

app.findChangeGrepOptions.searchBackwards = true/false

 

P.

Inspiring
November 24, 2020

Thanks for the quick reply Peter!

I am actually referencing back to your Scripting InDesign cs3/4 with JavaScript quite a lot as I work on these scripts.