Revert "Revert "Various scripts used to manage OSX""

This reverts commit 05f98e93e298407e5d52477d3c3947947dafd8e7.