# downloads and installs the latest version of Firefox copy Firefox application to /Applicationsįrom this list of steps, we can build the first ‘frame’ of our script: #!/bin/zsh.When we want to automate the task ‘Download and Install Firefox,’ we have the following steps: Finally, they need to copy the Firefox application from the virtual disk to the Applications folder. Then the user needs locate the dmg in the ~/Downloads folder and open it to mount the virtual disk image. To download and install the latest version of Firefox a user has to go to the Firefox website and download the latest version, which will come as a disk image (dmg) file. To further illustrate the progress from the idea of a workflow to a working script, let us look at another, more involved example. Enjoy!įollow this blog or the Twitter account for updates on the book’s progress! Download and Install Firefox This series is an excerpt from the first chapter of my upcoming book “Scripting macOS” which will teach you to use and create shell scripts on macOS.