#target illustrator
function test(){
function isSquare(item){
if(item.pathPoints.length > 4){
return false;
}
for(var i=0; i<item.pathPoints.length; i++){
var thisPoint = item.pathPoints;
if(Math.floor(thisPoint.leftDirection[0]) != Math.floor(thisPoint.rightDirection[0]) ||
Math.floor(thisPoint.leftDirection[1]) != Math.floor(thisPoint.rightDirection[1]) ||
Math.floor(thisPoint.leftDirecti
...