Open
Description
The library does a great job with almost all Privacy settings.
But it lacks support for Automation. It would be great to be able to check permission like this:
permissions.getAuthStatus('automation', 'com.apple.SystemEvents')
And ask for automation permission like this:
permissions.askForAutomation('com.apple.SystemEvents')
To check this, some simple automation command from Standard Suite can be tried to run, such as count
:
tell app id 'some.your.application' to get count
And if the command returns an error, request permission via a call like this:
open x-apple.systempreferences:com.apple.preference.security?Privacy_Automation