mac scripts - assorted stuff