OSX timed task issue and resolution not allowed to access the accessibility

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.