Improved iterm applescript helpers