I want to enable access for assistive devices programatically on 10.9. On 10.8 and lower I was using following Applescript to enable access for assistive devices: tell application 'System Events' if UI elements enabled is false then set UI elements enabled to true end if end tell With 10.9, Apple has moved the accessibility options to System Preferences ➞ Security & Privacy ➞ Privacy ➞ Accessibility. Unlike previous versions of OS X, which used a universal checkbox for all applications, the new functionality in 10.9 allows users to individually choose which apps can gain control of the system to perform their various scripted functions. Apple has NOT provided any API to developers to programmatically enable accessibility for an app. So Mac OS 10.9 will prompt a dialog for end user permission to enable Accessibility when application uses accessibility APIs.
Additionally User has to Relaunch the application after enabling Accessibility. Can we enable access for assistive devices programmatically on 10.9 using Applescript or any other APIs? Any help to fix this issue would be greatly appreciated. Thanks for this shell script samples from @NightFlight, which are really helpful.
![Enable Access For Assistive Devices Mac 10.10 Enable Access For Assistive Devices Mac 10.10](http://mizage.com/help/images/10.8.2.png)
I used this with AppleScript in a Python application, like the following: set sh to 'touch /private/var/db/.AccessibilityAPIEnabled && sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db ' 'INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','com.godevnode',0,1,0,NULL); ' do shell script sh with administrator privileges It worked well for me in Python code as a string. Thanks everyone. I issue the following triggered from the login window to ensure control is given only to the items we want every session: # Enable Service Accessibility for Textpander and others # Clear the acess table.
Sqlite3 /Library/Application Support/com.apple.TCC/TCC.db 'DELETE FROM access' # Enter the access we wish to have. Sqlite3 /Library/Application Support/com.apple.TCC/TCC.db 'INSERT INTO access VALUES ('kTCCServiceAccessibility','com.apple.systempreferences',0,1,1,NULL)' sqlite3 /Library/Application Support/com.apple.TCC/TCC.db 'INSERT INTO access VALUES ('kTCCServiceAccessibility','de.petermaurer.textpanderdaemon',0,1,1,NULL)'.
Student Activity: Enable Access for Assistive Devices. Enable access for assistive devices. >> from the Apple menu, choose System Preferences The System Preferences window opens. >> select either the System or Personal group (depending on the version of your Mac’s operating system, you will either have one or the other). OS X Mountain Lion’s method to enable assistive devices. After installing it on Mavericks, SizeUp gave us the familiar message about enabling assistive devices.
This command enables access for assistive decives on Apple OS X machines via the command line, or via Apple Remote Desktop. This is needed for software like SpectacleApp or Sizeup.
![Assistive Assistive](/uploads/1/2/5/4/125425584/241994291.jpg)
Mavericks In Mavericks Apple changed the permissions so that every app has to be given permission individually. Therefore we need to do a bit more work.