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

how script for select rectangle in indesign

Community Beginner ,
Feb 02, 2018 Feb 02, 2018

how script for select rectangle in indesign.

1.1K
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
Community Expert ,
Feb 02, 2018 Feb 02, 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!
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
Community Beginner ,
Feb 02, 2018 Feb 02, 2018

pleas more discreption.

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
Community Expert ,
Feb 02, 2018 Feb 02, 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!
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
Community Beginner ,
Feb 02, 2018 Feb 02, 2018

no. These two questions are different.

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
Community Expert ,
Feb 02, 2018 Feb 02, 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!
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
Community Beginner ,
Feb 03, 2018 Feb 03, 2018

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

What is this script?

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
Community Expert ,
Feb 03, 2018 Feb 03, 2018

Hi shahriara7551080 ,

if you want to select e.g. all rectangles on a spread there is a preinstalled script waiting for you in your InDesign's Scripts panel: Samples > JavaScript > SelectObjects.jsx

Unfortunately the default with this script is that all options are preselected:

SelectObjects.jsx-defaults-ALL-SELECTED.png

To change the default state of the checkboxes inspect lines 37 to 45 of the script and change:

checkedState:true

to

checkedState:false

SelectObjects.jsx-defaultsChanged-2.png

The new defaults for SelectObjects.jsx showing after changing true to false in lines 37 to 45:

SelectObjects.jsx-defaultsChanged-1.png

Now the script is easier to handle.

If you want to select all rectangles in the spread, just do one click and press OK.

Before you had to do eight clicks and press OK.

Regards,
Uwe

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
Community Expert ,
Feb 03, 2018 Feb 03, 2018
LATEST

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

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