Setting the default printer with a script with Mac OS X

After looking around the internet, I couldn’t find the answer in a single place, but I figured it out and so I might as well publish it here. If what you want is to make a script so that all the user has to do is double-click something or run a script and their computer […]