Skip to main content
Inspiring
September 13, 2022
Answered

executemenucommand selectall doesn't select text

  • September 13, 2022
  • 1 reply
  • 1156 views

I have a document with several artboards in it and I want to select all so I run this:

app.executeMenuCommand("selectall");

Unfortunately, this seems to only select the artwork items and not the text.

Am I doing something wrong or is there a better way to select everything?

 

Thanks

 

This topic has been closed for replies.
Correct answer Bernie5CFE

Thanks @Charu Rajput, you sent me in the right direction. 

In the end I ended up doing this:

this.selectAll();

for ( var i = 0; i < app.activeDocument.textFrames.length; i++ ) {
  app.activeDocument.textFrames[i].textRange.select(true)
}

1 reply

Inspiring
September 13, 2022

Actually it is selecting some of the text just not everything - see the attached screen grab

 

manal shanableh
Legend
September 13, 2022

go to layers, select the circle on the right, click to target everything including artboard.