Skip to main content
markp9652695
Inspiring
February 25, 2019
Answered

JS Select Text Frame

  • February 25, 2019
  • 1 reply
  • 2007 views

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];

This topic has been closed for replies.
Correct answer BarlaeDC

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

1 reply

BarlaeDC
Community Expert
BarlaeDCCommunity ExpertCorrect answer
Community Expert
February 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

markp9652695
Inspiring
February 25, 2019

It worked. Thank you, Malcolm.