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

JS Select Text Frame

Participant ,
Feb 25, 2019 Feb 25, 2019

I am trying to select a text frame, but I don’t see a TextFrame property or method that will select a text frame. Please help me solve the problem.

var curDoc = app.activeDocument;

curDoc.pages[0].textFrames[0];

TOPICS
Scripting
1.9K
Translate
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

Community Expert , Feb 25, 2019 Feb 25, 2019

Hi,

You should be able to use  the select function on the Document object.

curDoc.select ( curDoc.pages[0].textFrames[0]);

Hope this helps

Malcolm

Translate
Community Expert ,
Feb 25, 2019 Feb 25, 2019

Hi,

You should be able to use  the select function on the Document object.

curDoc.select ( curDoc.pages[0].textFrames[0]);

Hope this helps

Malcolm

Translate
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 ,
Feb 25, 2019 Feb 25, 2019
LATEST

It worked. Thank you, Malcolm.

Translate
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