4 x 4 iTerm Grid
#!/bin/bash
# panes
# make a 4x4 grid of iTerm panes
/usr/bin/env osascript <<-EOF
tell application "iTerm"
activate
set myterm to (make new terminal)
tell myterm
launch session "Panes"
tell i term application "System Events" to keystroke "d" using command down
tell i term application "System Events" to keystroke "D" using command down
tell i term application "System Events" to keystroke "[" using command down
tell i term application "System Events" to keystroke "[" using command down
tell i term application "System Events" to keystroke "D" using command down
end tell
end tell
EOF