p8 icon indicating copy to clipboard operation
p8 copied to clipboard

In Monterey, Applescript app not allowed to send keystrokes (1002)

Open matrixbud opened this issue 2 years ago • 0 comments

I have an Applescript application named "New" and I get the above message whenever I run it. I have other similar Applescript apps that have the same problem. "New" is a simple 1-line applescript to create a new folder:

      tell application “System Events” to keystroke “n” using {command down, shift down}

I have given script editor and "New" Full Disk Access and Accessibility in the Security & Privacy pref pane.

This error began when I upgraded to Monterey. I created variations of "New", for example accessing "New Finder Window" from Finder's File menu, but all of my attempts run into this same problem. I have restarted the Finder many times, and even rebooted a few times, but the error persists.

matrixbud avatar Oct 03 '22 23:10 matrixbud