Updated MacOSX script