fix Apple Scripts