#!/usr/bin/osascript if application "iTerm2" is running then tell application "iTerm2" create window with default profile end tell else tell application "iTerm2" to activate end if