I followed these instructions (except for copying the executable to my PATH because I cannot seem to find it and it does not seem necessary). Then I made a file called image
Mac PATH suggested setup:
vi ~/.bash_profile and hit enter (this opens or creates your bash_profile where you can customize Terminal commands).i to enter insert/edit mode then type alias phantomjs='~/PATH/TO/phantomjs' and be sure to replace ~/PATH/TO/phantomjs with something like ~/Documents/PhantomJS/bin/phantomsj or wherever the file exists on your machine.esc to exit insert/edit mode then type :x and hit enter to save the file.phantomjs and hit enter. If you see the prompt phantomjs> then you're all set.phantom.exit() to end the PhantomJS program.phantomjs. This is helpful when saving screenshots because the images will be saved inside the folder that's active in your Terminal.