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?
tell app "Finder" to open every application file in the entire contents of (path to applications folder) as alias list. Then
repeat with A in the result...
ignoring application responses...
quit the application named A...
end repeat. It'll be painful, but it'll be like ripping a bandaid off.