Automating/Scripting on MacOS

Associate
Joined
28 May 2021
Posts
1,544
Location
St Albans
I wonder if MacOS does this in a similar fashion to Windows..

What I would like to do is apply a script to file by drag/drop

eg for ApplicationX.app

sudo xattr -lr /Applications/ApplicationX.app
sudo xattr -cr /Applications/ApplicationX.app
sudo codesign -f -s - /Applications/ApplicationX.app

So I want a script that I can drag the ApplicationX onto and release and have it do those 3 things?

Anyone help a MacOS noob out, please?
 
Yeah, worth checking Automator, although it more a drag and drop tool for those who don't need to know the command line exists. It's been around since the earliest versions of OS X.
 
Back
Top Bottom