welcome to scripting,
get the geometric bounds of the selected object, that will be an array of 4 values (left, top, right, bottom), get the right value from it and subtract it from the left value of the "repeat" object.
Yes, exactly. The problem i am having is directing the script to get the values for the bounds of the grouped object named "repeat" so that I can have it subtract the width of the selected object.
var grpObjBounds = app.activeDocument.groupItems['repeat'].geometricBounds; var grpObjLeft = grpObjBounds;
Wow. It looks so simple when you put it that way. I was close, but this is much better in that it works.