macOS Mojave, Automator “Not authorized to send Apple events to System Events.”

后端 未结 13 827
误落风尘
误落风尘 2020-12-24 00:42

After I updated to Mojave, I can no longer use the automator service I\'ve previously been using with the alert below.

  • In Security & Privacy, I already ch
13条回答
  •  礼貌的吻别
    2020-12-24 01:19

    I ran into this problem today using a script I've had for literally a decade that automated rasterizing Illustrator files in Photoshop only to be told it doesn't have permission without a reason to give it. The solutions above don't work because it has nothing to do with System Events in my situation. I then tested and found out I have the same problem in literally every single app on my computer if using osascript. If I tell it in the script to open a file I get a permissions error, but for some absurd reason if I tell it in a script to close an already open file I suddenly get a permissions dialog:

    osascript -e "tell application \"Adobe Photoshop 2021\" to close current document saving no"
    

    Thought I'd post it here to help someone else in this exasperating predicament.

提交回复
热议问题