Skip to main content
Inspiring
June 28, 2017
Answered

find and replace text for only selected textframes.

  • June 28, 2017
  • 1 reply
  • 573 views

app.findTextPreferences.findWhat = "123"; 

app.changeTextPreferences.changeTo="";

app.activeDocument.changeText();

will delete all "123" in all TextFrames on the page, anyone know if it i@s possible to delete the "123" in the selected textframe and not all?

Thanks million..

This topic has been closed for replies.
Correct answer Jump_Over

Hi,

Use:

app.selection[0].changeText();

Jarek

1 reply

Jump_Over
Jump_OverCorrect answer
Legend
June 28, 2017

Hi,

Use:

app.selection[0].changeText();

Jarek

Inspiring
June 29, 2017

prompt and correct answer!! 

Thank you so much...