Applescript issue in beta 3.1
Required information for bugs. I probably can't help you unless you include this:
- iTerm2 version Build 3.1.20170419-nightly
- OS version 10.12.4
In iTerm 3.0.15 the below applescript will set x to 'missing value' if no window is open.
tell application "iTerm" activate set x to get current window end tell
In iTerm beta 3.1 the script fails with an AppleEvent error.