-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On invoking the shortcut, I receive an error popup reporting 'The action “Run Shell Script” encountered an error.' #56
Comments
Apparently, there were a few popups hiding behind all of my other windows, prompting me to allow Firefox and Automator to control my computer. I did so, and now, the error message I get is somewhat reduced:
|
Hi @Reefersleep 👋 I'm loving the username! I'm thinking my username should have been Reefercode 😄 I believe the answers you're looking for are in the README, albeit a garbled mess:
I hope this helps! If not, let me know. |
Hello 👋 Thanks! Sorry for being a bit curt when writing the issue. I had postponed it and wanted to get it out of the way, so it ended up very matter-of-factly :) I normally use I tried giving Accessibility permissions to Firefox, but it made no difference. |
Does the following command create a new Emacs frame in your environment? |
It does :) Both with the daemon running and not. |
Excellent! I think if you add the absolute path to the EA_EDITOR export, it will work. On Mac I have to rebuild the PATH variable because osascript doesn’t run shell commands interactively. It’s possible the executable is not being found and simply prefixing the path to the command in your export will solve the problem. Be sure you’ve got the latest version of Emacs Anywhere, a fully qualified path in your exported var, and be sure to put the export in your .bash_profile. |
I tried putting |
It dawned on me that |
I'm not sure how to proceed... My emacsclient file is in the same directory as yours and when I get the QuestionsDoes Emacs Anywhere work with any other applications in your environment? Have you tried tinkering with the source code? Solve a similar problemPerhaps you could write a tiny, separate workflow that just invokes emacsclient to open a new fame. If you can get it to work, it will shed some light on this issue. |
I decided to try Emacs Anywhere on a whim. It's not that important to me to get it working, so I'm going to let the issue rest for now. If it works for everyone else, great :) Cheers for trying to help out! 👍 |
I'm little late to the party, @Reefersleep you can checkout #67 as might be having a different osascript error |
I was seeing the same error and had tried everything suggested here. I was running the server from my main Emacs instance so I eventually tried:
I had to also restart the server but now it works! So make sure you are using an The only remaining problem is that my main Emacs instance gets the focus instead of the new frame that comes up. This seems to be a separate issue with multiple displays. |
I am experiencing the same problem. I have tried @m-cat approach but it didn't work.
in my |
Any news on this? I am still stuck |
Solved:
|
I use emacs-plus via homebrew along with zsh. I had to create a .bash_profile file with this line: export EA_EDITOR='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -a "" -c -d $DISPLAY' |
I was having again the same issue, https://apple.stackexchange.com/a/394983 Just open a terminal and run |
Just wanted to chime in that this worked for me as well, running |
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 showingThe action “Run Shell Script” encountered an error.
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-1728Following that, I tried giving the
Emacs Anywhere.workflow
file a checkmark inSecurity & Privacy > Allow the apps below to control your computer
. It didn't make any difference.The text was updated successfully, but these errors were encountered: