on testIntersection(rect1, rect2)
set {left1, top1, right1, bottom1} to bounds of rect1
set {left2, top2, right2, bottom2} to bounds of rect2
if left1 > right1 then
set {left1, right1} to {right1, left1}
end if
if top1 > bottom1 then
set {top1, bottom1} to {bottom1, top1}
end if
if left2 > right2 then
set {left2, right2} to {right2, left2}
end if
if top2 > bottom2 then
set {top2, bottom2} to {bottom2, top2}
end if
if left1 > right2 then return false
if left2 > right1 then return false
if top1 > bottom2 then return false
if top2 > bottom1 then return false
return true
end testIntersection
set Object1 to {bounds:{523.7314453125, 520.07958984375, 750.03515625, 464.88330078125}, width:226.3037109375, height:55.1962890625}
set Object2 to {bounds:{501.5654296875, 569.4541015625, 738.6728515625, 514.2578125}, width:237.107421875, height:55.1962890625}
testIntersection(Object1, Object2)