find features in InDesign, I want a known rectangle coordinates can move that I would be happy if you write for this scprit

find features in InDesign, I want a known rectangle coordinates can move

I would be happy if you write for this scprit

If you want to get the contact information, select a rectangle and try the code below:

var rectangleBounds = app.selection[0].geometricBounds;//array
alert(rectangleBounds[0]);
alert(rectangleBounds[1]);
alert(rectangleBounds[2]);
alert(rectangleBounds[3]);

If you want to move the rectangle.

app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
app.selection[0].move([0,10])//x-axis and y-axis

Vandy

Tags: InDesign

Similar Questions

Maybe you are looking for