emacs-anywhere: Can't launch emacs anywhere

When I try to activate my shortcut I get an error message

The action “Run AppleScript” encountered an error: “emacsclient: could not get terminal name
emacsclient: error executing alternate editor ""”

emacs and emacsclient are both PATH variables for me.

I’m using MacOS 10.13.3

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (12 by maintainers)

Most upvoted comments

Okay I finally figure it out.

I changed the script from

PATH=/usr/local/bin:$PATH ; emacsclient -a '' -c

to

do shell script "/usr/local/bin/emacsclient -a \"\" -c --display ns

and that did the trick.