Skip to content

iTerm2 doesn't request Automation rights on Mojave when running osascript

Detailed steps to reproduce the problem:

  1. Run any script that uses AppleScript. Any from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/osx/osx.plugin.zsh is a good example

What happened:

  • iTerm2 doesn't have any permissions to use AppleScript/Automation so the script fails with execution error: Not authorized to send Apple events to XXX

What should have happened:

Let me know if I can provide any more details.