Good evening everyone. I created a program in AppleScript. In this script, there are keystroke and key code. When the program runs a forbidden access message appears. I authorized the program in Accessible. But nothing is done. What's going on? How to solve this problem. Thank you in advance.
system events problem
The privileges in System Preferences > Security & Privacy > Privacy only work well if the program making the request is signed with a stable signing identity. So the behaviour you see depends on how you package your script. How are you running your script? Directly from within Script Editor? Or saving it to an applet? Or perhaps building an entire app in Xcode?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"