I have two MacBooks. Both run the same MacOS version. I installed the same Automator script in both. But on the older MacBook I get:
The action “Run AppleScript” encountered an error: “System Events got an error: com.automator.runner.xpc is not allowed to send keystrokes.”
I added Automator to the Security -> Accessibility section in both. It even works on the older one. But then it suddenly stops. It just don't get why...