I need a script which detects text frames which exceed a 10mm page margin.
I'd like these frames to automatically be set to the edge of the margin at 10mm.
var frames = app.activeDocument.textFrames.everyItem().getElements();
var marg = app.activeDocument.pages.everyItem().marginPreferences;
Am I on the right track with this script?
I really only need the left hand side of the frame to not exceed the left hand margin
geometricBound is an array itself. The entries in the array are (y1, x1, y2, x2). Yes the array starts with y not x, historical reasons.
Wo what you want to test is … geometricBounds …
Daniel (from Switzerland)