Python API standalone example will not start iTerm2 application.
- iTerm2 version: 3.3.4
- OS version:10.14.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here com.googlecode.iterm2.plist
I am trying to use the standalone example found here... https://www.iterm2.com/python-api/examples/set_title_forever.html
This could easily be a user error on my part as I'm fairly new to python and iTerm2 but any help or advice would be appreciated.
Detailed steps to reproduce the problem:
- install python3, iterm2, and pyobjc as per website.
- Copied and pasted code into iTermTest.pyiTermTest.py
- (using VSCode as editor/IDE)
What happened: I got a warning - "Module 'AppKit' has no 'NSWorkspace' member" in the IDE. Also, if iTerm2 is not running then the script stalls until I manually start the iTerm2 application, at which point it creates a tab or window with a custom heading.
What should have happened: The script should start the iTerm2 application and then create a window with a custom heading.