Updated mac script.