Came across this post/thread with a problem I'm having. I'm simply trying to run a .py script on macos Monterey 12.5.1, that I found online, to see why my current/active window I'm working in loses focus. When I go to run the script, it returns an error 'ImportError: cannot import name 'NSWorkspace' from 'AppKit'. Anyone know why appkit won't import in python3, and what I need to do to rectify this error?
Thanks!
Post
Replies
Boosts
Views
Activity
Did you ever get this to work @novek? For the life of me I cannot. I don't know how, nor want to create a virtual env...I just want to run a simple py script for a bit to see what the heck is taking focus away from my active window. Any help is really appreciated.
Thanks.