I know that similar questions have already been asked in this forum, but could not find a solution: I have a simple AppleScript:
on run {input, parameters}
tell application "System Events"
keystroke return
keystroke "c" using {command down}
keystroke "o" using {command down}
end tell
return input
end run
When I try to execute it as a "Quick Action" (produced with the Automator application) named "copy name and open.workflow" on macOS 27.0.1, its execution gets denied with the error message: “System Events got an error: Automator Workflow Runner (WorkflowServiceRunner, copy name and open) is not allowed to send keystrokes.” The same Quick Action used to work on macOS before version 27. Note that "Automator.app", "copy name and open.workflow", "/System/Library/Frameworks/AppKit.framework/Versions/Current/XPCServices/WorkflowServiceRunner.xpc/Contents/MacOS/WorkflowServiceRunner", "Finder", and even "/System/Library/CoreServices/System Events.app" are enabled in "Device Control and Data Access" under "Privacy & Security" in the System Settings. I've tried to remove them from the list and to return them, restarted macOS, to no avail.
Any idea what has to be done to get the script to run?
I can't bite back remarking that I think it is an outrage that Apple offers automation features and then makes it impossible to use them—that I am not allowed to execute my own harmless trivial script on my own computer.