function BoundsIntersect(b1, b2) { return (b1[1] < (b2[1] + (b2[3] - b2[1]))) && (b2[1] < (b1[1] + (b1[3] - b1[1]))) && (b1[0] < (b2[0] + (b2[2] - b2[0]))) && (b2[0] < (b1[0] + (b1[2] - b1[0]))); } var itm1 = app.activeDocument.pages.firstItem().pageItems[0]; var itm2 = app.activeDocument.pages.firstItem().pageItems[1]; BoundsIntersect(itm1.geometricBounds, itm2.geometricBounds);