How do I start creating an AppleScript command, when I just run the script (or double-click it in Finder?), It will run the terminal command set? The set of commands completely removes MySQL, and it has become painful to write them all the time. Teams:
sudo rm /usr/local/mysql sudo rm -rf /usr/local/mysql* sudo rm -rf /Library/StartupItems/MySQLCOM sudo rm -rf /Library/PreferencePanes/My* sudo rm -rf /Library/Receipts/mysql* sudo rm -rf /Library/Receipts/MySQL* sudo rm /etc/my.cnf
There is also another sudo nano /etc/hostconfig command that opens the file and I need to delete the line from the file, but it seems like it would be too hard to code, so I think I can do it manually. But it would be very useful to do this automatically with a single script.
Will it just be a bunch of these teams?
do shell script (...)
Thank you Christo
shell applescript macos
Hristo
source share