MacOS – How to always allow “[program] wants to make changes. Type your password to allow this.”

macospermissionSecurity

I use a program which prompts me often to "make changes" (make a system-level/root-level change). I trust this program and want to always allow it to do so. How is this done? I would expect an "always allow" button, but there isn't one.

I know the system directory which the program wants to modify and that I could lower the permissions of that folder; however, that may have an impact on other applications which expect certain permissions on that folder, so I don't want to do that.

Here is an example of the dialog. (I removed the name for privacy.)
enter image description here

Best Answer

This is too large a trust you want to give to osascript.

Do you want this command to run without asking you for a real confirmation:

sudo osascript -e 'tell app "Finder" to quit'

?