Indiscripts

Tag : Bounds

Dealing with Rotated Spread Views in a Script

“Rotate the spread view” is a nice feature introduced in InDesign CS4. It will prevent you from getting a stiff neck when working on rotated contents such as book spine or landscape tables. Great! Now the bad news: it seems that the DOM does not provide any means to check a rotated spread by scripting. No property, no access method. So what?

Continue reading...

Equalizer | Let's Copy/Paste Coordinates in InDesign!

Equalizer (JS Script for InDesign)Equalizer for InDesign CS4 is an all-in-one tool which allows you to pick up, swap, transfer and propagate size and/or location coordinates between objects. The script fits into the InDesign UI by expanding the contextual menu you get when right-clicking an object. Just install Equalizer.js in the Startup Scripts subfolder and you have the Equalizer features within arm's reach.

Continue reading...

Work Around the Width/Height Gap

Believe me or not, the InDesign DOM can't return directly the width and the height of a page item frame! Scripting beginners may be confused about this gap. There are many pitfalls to be aware of when we deal with dimensions and units. Let's talk about bounds and coordinate spaces...

Continue reading...