As I say, it's probably down to me not knowing how to execute it. I just pasted it in and hit Enter. // Error: global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: ...global proc buildBricks(float $brickWidth)({(string $sel[] = `ls -sl`;(for($s in $sel)({(float $scalex = `getAttr ($s + ".scaleX // // Error: Syntax error // // Error: // // Error: Syntax error //