I'm currently working on automated instalation of Mavericks 10.9. I have NetBoot set up. Everything works OK untill I want to execute Applescript. Since the release of new version I need to manually enable those scripts. Is there a command that I can use in shell script to add app to Assistive Devices list? Or maybe there is some plist that has to be edited for it to work?
MacOS – Allow application to control computer (assistive devices) on Mavericks via Terminal
applescriptautomationmacosplistterminal
Related Question
- How to avoid the GUI password prompt when using `osascript`
- MacOS – Run AppleScript from bash script
- MacOS – How to rename an ordered list of files with an ordered list of file names
- MacOS – How to reset OS X volume after sleep using launchd
- Droplet with a progress bar
- Osascript is not allowed assistive access. (-1728)
- Launching .NET Core executable when Custom URL is opened
Best Answer
The settings are stored in
/Library/Application Support/com.apple.TCC/TCC.db
:The schema, as given by
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db '.schema access'
, is:On my installation the last four columns (
client_type
,allowed
,prompt_count
, andcsreq
) are0|1|0|\xfa\xde\x0c
for applications that were added after the"example.app" would like to control this computer using accessibility features
dialog was shown and0|1|1|
for applications that I added by dropping them to the list in System Preferences.~/Library/Preferences/com.apple.universalaccessAuthWarning.plist
contains a list of applications for which the warning dialog has been shown:I couldn't figure out how to actually allow access for assistive devices for an application though. I tried for example running these commands:
I also tried restarting to apply the changes and setting the last four columns to
0,1,1,""
.