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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to