Skip to main content
Known Participant
February 3, 2018
Question

how script for select rectangle in indesign

  • February 3, 2018
  • 3 replies
  • 1053 views

how script for select rectangle in indesign.

This topic has been closed for replies.

3 replies

Jongware
Community Expert
Community Expert
February 3, 2018

How to find the proper forum for scripting questions? InDesign Scripting

Known Participant
February 3, 2018

no. These two questions are different.

Colin Flashman
Community Expert
Community Expert
February 3, 2018

Oh, sorry about that, I do apologise.

Try this snippet. I use it in my script to select all rectangles in an active InDesign file. It's part of a larger script that goes through a document and removes any frames that are blank. For your purposes, this should be what you're after.

var myGraphicFrames = app.activeDocument.rectangles;

for (i=myGraphicFrames.length-1; i>=0; i--) {

//do your thing here

}

However, this question was asked in the general InDesign forum. You may get more targeted and better answers in the InDesign Scripting subforum.

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
Known Participant
February 3, 2018

What scripts do you select with all the rectangle?
I just want to select all rectangles with script.

What is this script?

Colin Flashman
Community Expert
Community Expert
February 3, 2018

This thread is active elsewhere in the Adobe Forums where it is receiving appropriate responses: script for select image into indesign .

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
Known Participant
February 3, 2018

pleas more discreption.

Colin Flashman
Community Expert
Community Expert
February 3, 2018

Shahirara - this is a note to the moderators to say that you have already asked this question here: script for select image into indesign .

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!