Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SpiritSoul1008

macrumors member
Original poster
May 23, 2019
76
45
Screen Shot 2019-05-29 at 11.14.01 AM.png
Screen Shot 2019-05-29 at 11.14.11 AM.png
Hello,
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.