Automator App to force quit process by name with admin privileges
Hi, I've seen this question many times but just for common app names as Finder, which is easy to address with killall Finder.
But I'm looking for closing com.apple.quicklook.ThumbnailsAgent which looks to need admin privileges, I'm using this script in automator in order to reset the preview icons that aren't working time to time in monterey:
do shell script "killall com.apple.quicklook.ThumbnailsAgent" user name "****" password "********" with administrator privileges
do shell script "killall Finder"
It worked the first time I tried, it wont now....
Finder reboots but the process still in Activity monitor , you can see the process won't quit.
No error message...
I tried with a delay 10 between but that doesnt makes any sense (and dont work either)
Mac Studio