1. Merged PR #18 - fix bug in iterm2 applescript