Company Timing Music is played with the Mac Mini, before using itunes, you can use the crontab+ command/usr/bin/osascript-e ' tell application ' itunes ' to play ' timed playback
But Ituns import music is quite troublesome, before also with NetEase cloud music, but need to manually start and stop very troublesome.
One day thought can use Key wizard, timed in the Application launch button click, but the official download of the Button Wizard is not installed, and later found that the Apple script with the coordinates click;
A script was written, and then a separate command was written/usr/bin/osascript-e ' tell application ' System Events ' to-click at {100, 890} '
Find boot not up, ask a group of friends to learn to view crontab Log syslog | grep cron, when viewed, finds the following log:
Directly to Baidu is no effective solution, so I understand the error, the effect is no auxiliary authority;
So I went to "system Preferences"-"security and privacy"-"accessibility" view, sure enough, Cron didn't tick
Then unlock the cron, and Cron will run the script.
Although very late, but still want to record, afraid later forget, also convenient for other people to search similar problems can be solved;
OSX timed task issue and resolution not allowed to access the accessibility