Skip to main content
Participant
May 15, 2015
Answered

"redefine scalling at 100%" a complete indd document??'

  • May 15, 2015
  • 2 replies
  • 513 views

Hi Scripting Magicians

I usually need to resize a lot of text - so it turns that dobble sizing 5 pt (5,6 pt) that makes me crazy - since i can't avoid that happening i need to "redefine scalling at 100%" but that only works in a single spread by spread. is any script that could apply that to a complete document??'

thanks

Rui

This topic has been closed for replies.
Correct answer TᴀW

I see the mistake I made. Here's an updated version for the last two:

allItems = app.activeDocument.allPageItems;

l = allItems.length;

for (i = 0; i < l; i++){

allItems.redefineScaling();

}

Finally, if you want the more thorough option, i.e. all text frames

(including in groups, etc.) but only text frames, not graphics, try this:

allItems = app.activeDocument.allPageItems;

l = allItems.length;

for (i = 0; i < l; i++){

if (allItems instanceof TextFrame) allItems.redefineScaling();

}

2 replies

TᴀW
Legend
May 15, 2015

Well, if it's just text frames, this 1-liner should do it:

app.activeDocument.textFrames.everyItem().redefineScaling();

See, scripting is easy

However, note that the above will probably not work with text frames in

groups, tables, footnotes, etc.

If you want something more thorough, including all text frames, all

graphics, etc., this is the way to do it:

allItems = app.activeDocument.allPageItems;

l = allItems.length;

for (i = 0; i < l; i++){

allItems.redefineScaling();

}

Finally, if you want the more thorough option, i.e. all text frames

(including in groups, etc.) but only text frames, not graphics, try this:

allItems = app.activeDocument.allPageItems;

l = allItems.length;

for (i = 0; i < l; i++){

if (allItems instanceof TextFrame) allItems.redefineScaling();

}

I haven't tested any of these. Hopefully they should work, but if not,

tell us about the bug here!

HTH!

id-extras.com | InDesign tools & scripts for typesetters, form designers, and translators
RuiAlvesAuthor
Participant
May 15, 2015

Hi Ariel

the text only option it works.

other 2 don't.

Thanks

Rui

TᴀW
Legend
May 15, 2015

RuiAlves wrote:

Hi Ariel

the text only option it works.

other 2 don't.

Thanks

Rui

In your original post you only were talking about text frames, so I guess you don't need the other 2 options any way.

id-extras.com | InDesign tools & scripts for typesetters, form designers, and translators
TᴀW
Legend
May 15, 2015

Are you looking to do this only for text frames, or also for graphic frames?

id-extras.com | InDesign tools & scripts for typesetters, form designers, and translators