Script 'schedule': fixed to use on Mac.