AppleScript - System Events Error : Access for assistive devices is disabled

前端 未结 3 1934
傲寒
傲寒 2021-02-14 17:29

I have a problem with AppleScript and System Events.

I have check \"Enable access for assistive devices\" in the “Universal Access” preference pane in System Preferences

3条回答
  •  借酒劲吻你
    2021-02-14 17:59

    On Mac OS X 10.9 you actually get the same error when the AppleScript Editor is not allowed to use Accessibility.

    Here's how you enable it:

    Go to System Preferences > Security & Privacy > Privacy > Accessibility.

    enter image description here

    Then, just check the checkbox left to the AppleScript Editor and the error should be gone.

提交回复
热议问题