Terminal: Add items to Accessibility Access in MacOS Mojave 10.14?

1.6k Views Asked by At

Is there a way to programmatically add items (Osascript) to Accessibility Access?

I read its possible via tccutil, for example:

sudo tccutil.py --insert /usr/bin/osascript

Mojave is not letting me do this: "Error opening Database", seems like TCC is SIP protected.

Is it possible to do this with pure terminal commands? Since i want to execute an applescript remotely via a bash script..

osascript /folder/myscript.scpt

myscript.scpt: execution error: System Events got an error: osascript is not allowed assistive access. (-25211)

Greets.

0

There are 0 best solutions below