I am currently using macOS 10.14.5 on a 2018 Macbook Pro. I would like to make a quick action for my touchbar where I can utilize the RepairPermissions utility from https://www.firewolf.science/2016/0...pports-repairing-permissions-on-macos-mojave/
They removed the native repair permissions from the OS, and sometimes I still require this service.
It works properly in the terminal but when I make a service to run it from automator I have some errors.
First I set it to receive "no input" and for it to work in any application.
Next I dragged "Run AppleScript" to the timeline and entered the following:
do shell script "sudo /usr/local/bin/RepairPermissions /"
It returns a syntax error:
sudo: no tty present and no askpass program specified
I wonder it there is a way for a prompt to ask for my password to authenticate the sudo command.
I would just like to hit this button on my touchbar to start repairing the permissions on the disk.