Automating FTP on the Mac with High Sierra

At work, I was scripting the connection to an FTP server and downloading a website backup.

From articles at Low-End Mac and Mac OS X Hints, this seemed pretty straightforward.

However, the command-line FTP app was removed from recent versions of macOS. A conversation on Stack Exchange explained how to download and install the command-line FTP application.

Now the pieces are in place and that task is automated!

How to reset NVRAM on your Mac

A time-honored step for troubleshooting Macs. Done by holding Option+Command+P+R during startup.

From the Apple KB article:

If you experience issues related to settings stored in NVRAM, resetting NVRAM might help.
 
NVRAM (nonvolatile random-access memory) is a small amount of memory that your Mac uses to store certain settings and access them quickly. Settings that can be stored in NVRAM include sound volume, display resolution, startup-disk selection, time zone, and recent kernel panic information. The settings stored in NVRAM depend on your Mac and the devices you're using with your Mac.

If you experience issues related to these settings or others, resetting NVRAM might help. For example, if your Mac starts up from a disk other than the one selected in Startup Disk preferences, or a question mark icon briefly appears before your Mac starts up, you might need to reset NVRAM.

Older Mac computers store similar information in PRAM (Parameter RAM) instead of NVRAM. The steps for resetting PRAM are the same as the steps for resetting NVRAM.

Source

How to make a Linux or Mac shell script executable

  1. Open Terminal
  2. Make the script executable by typing: chmod a+x (yourscriptname)
  3. In Finder, right-click the file
  4. Select “Open with” and “Other…”
  5. Here you select the application you want the file to execute into, in this case it would be Terminal.
    • To be able to select Terminal, you need to switch from “Recommended Applications” to “All Applications”.
    • The Terminal.app application can be found in the Utilities folder
  6. After clicking OK you should be able to execute the script by simply double-clicking it.