How to resolve 'Access to Control' message

Joined
Dec 4, 2018
Messages
2
Reaction score
1
Points
3
I have a shell script which I run in as a LaunchDaemon. It comes up with the following dialog.

Screen Shot 2018-12-04 at 12.29.07 PM.png

Usually when I see this, I click OK and I grant access to the app. However, in this case it seems you can't grant access to a shell script or if you can, at least I can't figure out how.

How do I resolve this? And yes, I wrote the shell script and I do want to grant permission to do what it is trying to do.
 
OP
M
Joined
Dec 4, 2018
Messages
2
Reaction score
1
Points
3
Solved

Apple made changes to AppleScript events in Mojave, so running an osascript from within a Bash script will now trigger this dialog, just as though you were running an AppleScript. In System Preferences : Security & Privacy : Privacy tab : Accessibility, click the + button, and add /usr/bin/osascript to the list.

When you click the + symbol, you will get a typical File Chooser. Press shift+command+G and in the Go To Folder dialog, enter /usr/bin/osascript and then click GO. You will see this application highlighted in a window of other executables. Click Open, and it will be added to the list in the preceding paragraph.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,734
Reaction score
2,059
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Thanks for reporting back the solution, that should help others.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top