Modify mac scripts