Skip to main content
Participant
November 25, 2009
Question

indesign cs3 javascript to find and replace a text using regex

  • November 25, 2009
  • 1 reply
  • 1323 views

Hi,

I am new to indesign javascript. I want to find and replace some text in a indesign document. Can anybody help me to find the text "Sample" and replace with "NEWONE" etc.,

Also where can i find examples of this find and replace concept, or sample files etc.,

Thanks for the help!

Anil

This topic has been closed for replies.

1 reply

Kasyan Servetsky
Legend
November 25, 2009

Hi Anil,

Detailed information on scripting is here:

http://www.adobe.com/products/indesign/scripting/ (choose Scripting resources)

Samples are here:

http://wwwimages.adobe.com/www.adobe.com/products/indesign/scripting/downloads/indesign_cs3_guide_scripts.zip

(See text folder)

You can also download scripting guide and read the section called "Finding and changing text".

Hope this helps.

Kasyan