• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

find and replace text for only selected textframes.

Participant ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

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..

TOPICS
Scripting

Views

474

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Jun 28, 2017 Jun 28, 2017

Hi,

Use:

app.selection[0].changeText();

Jarek

Votes

Translate

Translate
Mentor ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

Hi,

Use:

app.selection[0].changeText();

Jarek

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

LATEST

prompt and correct answer!! 

Thank you so much...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines