AppleScript - "front window" doesn't return the front window
- iTerm2 version = Build 3.1.beta.3
- OS version = 10.12.4 (16E195)
When using AppleScript and running the following script:
tell application "iTerm" to return front window
It always returns a reference to the same window, even if the front window has changed by changing focus to another (i.e. it's no longer the front window, but might be the furthermost back).