Accessibility API: get list of allowed apps
Accessibility API: get list of allowed apps
- Subject: Accessibility API: get list of allowed apps
- From: sqwarqDev <email@hidden>
- Date: Sun, 13 Sep 2015 14:58:11 +0700
Is there a way to get a list of the apps currently allowed access to the Accessibility API (I’m talking about the apps listed in the System Preferences > Security & Privacy > Privacy > Accessibility pane and which are allowed to GUI script the computer)?
I’ve found two “hackarounds”, neither of which are really what I need:
i. read the plist at defaults read ~/Library/Preferences/com.apple.universalaccessAuthWarning.plist
The problem with this is that it lists apps that have caused the warning dialogue to be shown to the user throughout the user’s entire history, and not just the apps that are currently authorised. Although it should contain the current authorised apps, there’s no way to determine which ones are current and which ones are historical. It’s also possible the very apps I’m trying to determine as to whether they’re in the list may have been added with a bit of hackery and escaped this list entirely.
ii. read the list using something like
$ sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access’
The problem with this is it requires escalation of privileges that shouldn’t really be necessary just to read the list (which is all I need).
I basically want to read the list and determine whether anything in a user-defined set of "blacklisted" apps is in there or not. Alas, I can’t find anything either in Cocoa docs or from searching the mother net.
Any clues much appreciated.
TIA
Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden