I make extensive use of Apple Events to control a wide variety of applications on my machine. The new security prompts introduced in Mojave are crippling.
In previous versions of macOS, once an app was granted permission to "control your computer", it was able to send Apple events to any other app on your machine. In Mojave, this permission must be manually granted once for each app being controlled.
Once a user grants access, their selection is stored in one of two sqlite databases:
- Note that #2 is only visible to the root user.
- Note that System Integrity Protection is disabled.
Would it be possible to edit these sqlite databases directly to automatically grant permissions and bypass these security prompts?