margin = 20;
			X = 0; // 開始X座標
			Y = 0; // 開始Y座標
			LX = 200;
			LY = 200;
			docObj = app.activeDocument;
			pObj = docObj.pathItems.add();
			points = [];
			points.push([X, Y]);
			for (i=0; i<5; i++)
			{
			 points.push([X+LX, Y]);
			 points.push([X+LX, Y+LY-margin]);
			 points.push([X+margin, Y+LY-margin]);
			 points.push([X+margin, Y+margin]);
			 X = X + margin;
			 Y = Y + margin;
			 LX = LX - margin * 2;
			 LY = LY - margin * 2;
			}
pObj.setEntirePath(points);
			pObj.filled = false; // 塗りなし
			pObj.stroked = true; // 線あり
			pObj.strokeWidth = 1; // 線幅1ポイント
			pObj.strokeColor = setColor(255,0,0); // 線の色を指定(赤色)
function setColor(r,g,b)
			{
			 var tmpColor = new RGBColor();
			 tmpColor.red = r;
			 tmpColor.green = g;
			 tmpColor.blue = b;
			 return tmpColor;
			}