Post

Replies

Boosts

Views

Activity

Direct access not available
Hello everyone. I created a program in Applescript. This program acts directly on the Finder drop-down menu. The program "clicks" in the "Off" menu through the hierarchies click menu item "Turn off" of menu 1 of menu bar item "Apple" via tell "Process Finder" of the "System Events" application. When I run the application, a message: "Direct access not available" appears in error. I installed the "Accessibility" authorization of System Preferences but it doesn't help. The curious thing is when I run this program by being a simple script (by clicking on the Execute script arrow) the operation takes place correctly without error. I searched the internet everywhere but to no avail. It's beyond me. Can you help me?
2
0
603
Jan ’22
system events problem
Hello everyone. I created a program that uses "System Events" and I have lots of error messages when it "runs". Two error messages 1): "is not allowed to send keystrokes." and 2): "is not allowed to send keystrokes", is displayed when the program uses "keystrokes" or "key code" with "System Events". I have authorized the AppleScript program in the "Security and Privacy" section and error messages always appear. How to solve this problem? Thank you in advance.
0
0
467
Feb ’22