apple script for some terminal commands