@entrata One way to run this script is by saving it as an executable
file (.sh) in TextEdit and then executing it in Terminal: Open TextEdit,
then copy past the script: In the TextEdit menu click Format > Make
Plain Text > Ok. Then click File > Save,...