move the geometricBounds using condition
Hello forum,
May i get a help from you.
I m trying to maintain only the geometricBound[2] (top of the frame) and moving all the 3 sides of the frame towards Bleed..
my simple english style script is..
(trying to keep the Top frame position as it and move all the 3 geometric Bounds towards the Bleed).
How Can i check using if condition that all the 3 frames are to touching Marings, like below. and if so move them towards bleed.Do not move the frame if it is not touching the maring.
if (app.selection[0].geometricBounds == [pageBounds[0]-maringBottom, pageBounds[1]+marginLeft, app.selection[0].geometricBounds[2], pageBounds[3]-marginRight])
{
app.selection[0].geometricBounds = [pageBounds[0]+bottomBleed, pageBounds[1]-bleedLeft, app.selection[0].geometricBounds[2], pageBounds[3]+bleedRight]
Please help on this forum.
Dhinak..