Open getvictor opened 3 weeks ago
Hey @getvictor! Thanks for discovering this and making such an incredible demo!
Were you able to find a way around this? Does pyautogui work in this environment, or another library like pynput? Would be happy to swap out the keyboard controlling library to make it work with fleet.
Describe the bug
I have a background macOS service (fleetd) that's trying to run a script using interpreter APIs.
It fails
keyboard.write
because it doesn't seem to have access to NSPasteboard.generalPasteboardI'm not sure why it can't get a handle to the generalPasteboard. The service has System Events TCC permissions and all other requests for TCC permissions that popped up (Accessibility, Recording Screen and Audio).
Looking at the error, the method should work even without access to the generalPasteboard. interpreter should write one character at a time instead of trying to copy/paste.
Reproduce
The python script should try and use
interpreter.computer.keyboard.write("Profiles")
Expected behavior
I expected
interpreter.computer.keyboard.write("Profiles")
to work.Screenshots
No response
Open Interpreter version
0.2.5
Python version
3.11.9
Operating System name and version
macOS 14
Additional context
I'm trying to create a demo where I use an Open Interpreter script to remediate an IT policy failure.