If this is so Mac specific it should probably have an if Platform == OSX check?