Note this script is OS X specific