automatically enable assistive devices


I am looking for a way to automatically enable/disable assistive devices, so i can use gui scripting.
I’d like this to happen without opening the system prefs and simulate a button click, but maybe rewrite a prefs file.

Does anyone know, if this is possible?


This requires admin permissions, but will set Assistive Devices checkbox:

tell application "System Events" to set (UI elements enabled) to true

So easy, thanks a lot!