Mac enable access for assistive devices every time

broken image
broken image
broken image

You can paste the above script into Script Editor and save it in your ~/Library/Scripts/ folder (or anywhere else you'd like). Check 'Enable access for assistive devices'' end tell end ifend tell end tell else tell application 'System Preferences' activate set current pane to pane '' display dialog 'UI element scripting is not enabled. Tell application 'System Events' if UI elements enabled then set FrontApplication to (get name of every process whose frontmost is true) as string tell process FrontApplication click button 2 of window 1 -button 2 is the green 'zoom' button for all applications -window 1 is always the frontmost window.