jslegendre / tccplus

tccutil with extended capabilities. Grant/remove accessibility permissions to any app.
MIT License
230 stars 40 forks source link

Is it possible to add Automation permissions? #4

Open ShroomKing opened 4 years ago

ShroomKing commented 4 years ago

There is an App called "Tab Switcher" on the App Store which needs Safari Automation permissions. Is it possible to use tccplus to add this permission manually?

I tried adding AppleEvents but that didn't work, it doesn't even show up in the Settings. Tried adding permissions for All but that had the same effect(nothing)

Just wondering if I am missing something? Thanks in Advance

touchmii commented 3 years ago

10.14 or 10.15 /usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "REPLACE INTO access VALUES('kTCCServiceAutomation','com.xx.bundleid',0,1,1,NULL,NULL,NULL,'UNUSED',NULL,0,1602129687);" 11.x /usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "REPLACE INTO access VALUES('kTCCServiceAutomation','com.xx.bundleid',0,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1608354323);"

or you can use INSERT command if this app not ask Permissions. like this, /usr/bin/sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','',0,1,1,NULL,NULL);"

kTCCServiceAll kTCCServiceAddressBook kTCCServiceCalendar kTCCServiceReminders kTCCServiceLiverpool kTCCServiceUbiquity kTCCServiceShareKit kTCCServicePhotos kTCCServicePhotosAdd kTCCServiceMicrophone kTCCServiceCamera kTCCServiceMediaLibrary kTCCServiceSiri kTCCServiceAppleEvents kTCCServiceAccessibility kTCCServicePostEvent kTCCServiceLocation kTCCServiceSystemPolicyAllFiles kTCCServiceSystemPolicySysAdminFiles kTCCServiceSystemPolicyDeveloperFile ...

DigiQueen commented 3 years ago

hello, i have the same problem with endnote and word, did you manage to get it to work?