Skip to content

Instantly share code, notes, and snippets.

@phs
Last active December 17, 2015 23:58
Show Gist options
  • Save phs/5692872 to your computer and use it in GitHub Desktop.
Save phs/5692872 to your computer and use it in GitHub Desktop.
One-liner to enable access for assistive devices in OS X.
# Thanks https://github.com/ptb/Mac-OS-X-Lion-Setup/blob/965b6b93e378da580aae554e95624d9891ca0756/setup.sh
/bin/echo -n 'a' | /usr/bin/sudo /usr/bin/tee /private/var/db/.AccessibilityAPIEnabled > /dev/null 2>&1; /usr/bin/sudo /bin/chmod 444 /private/var/db/.AccessibilityAPIEnabled
@phs
Copy link
Author

phs commented Jun 3, 2013

DO NOT RUN THE INITIAL VERSION

If you run this, be sure there is a semi-colon after 2>&1, like this: 2>&1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment