emacs-anywhere: On invoking the shortcut, I receive an error popup reporting 'The action “Run Shell Script” encountered an error.'
On invoking the shortcut, I receive an error popup reporting ‘The action “Run Shell Script” encountered an error.’
The popup has the options “OK” (dismissing the poup) and “Show Workflow”, which opens “/Users/ree/Library/Services/”, showing Emacs Anywhere.workflow. If I try to open it and run it in Automator, I get an error popup showing
The action “Run Shell Script” encountered an error.
161:177: execution error: System Events got an error: osascript is not allowed assistive access. (-25211)
52:64: execution error: System Events got an error: osascript is not allowed assistive access. (-1719)
emacsclient: could not get terminal name
emacsclient: error executing alternate editor """"
With only an “OK” button.
After some googling, I found that the osascript error had been experienced by people in other contexts. In particular, I reviewed this stack overflow issue: https://apple.stackexchange.com/questions/291574/osascript-is-not-allowed-assistive-access-1728
Following that, I tried giving the Emacs Anywhere.workflow file a checkmark in Security & Privacy > Allow the apps below to control your computer. It didn’t make any difference.
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 19 (4 by maintainers)
I use emacs-plus via homebrew along with zsh. I had to create a .bash_profile file with this line: