Skip to content
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

Does this work on mojave? #62

Open
jsholmes opened this issue Sep 11, 2019 · 4 comments
Open

Does this work on mojave? #62

jsholmes opened this issue Sep 11, 2019 · 4 comments

Comments

@jsholmes
Copy link

❯ curl -fsSL https://raw.github.com/zachcurry/emacs-anywhere/master/install | bash
dependency check passed: emacsclient
dependency check passed: git
Installing Emacs Anywhere...
Cloning into '/Users/john/.emacs_anywhere'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 256 (delta 0), reused 0 (delta 0), pack-reused 252
Receiving objects: 100% (256/256), 1.36 MiB | 18.56 MiB/s, done.
Resolving deltas: 100% (119/119), done.
Copying /Users/john/.emacs_anywhere/Emacs Anywhere.workflow to /Users/john/Library/Services...
cp: /Users/john/Library/Services/Emacs Anywhere.workflow: Permission denied
cp: /Users/john/.emacs_anywhere/Emacs Anywhere.workflow: unable to copy extended attributes to /Users/john/Library/Services/Emacs Anywhere.workflow: Permission denied
cp: /Users/john/Library/Services/Emacs Anywhere.workflow/Contents: No such file or directory
cp: /Users/john/.emacs_anywhere/Emacs Anywhere.workflow/Contents: unable to copy extended attributes to /Users/john/Library/Services/Emacs Anywhere.workflow/Contents: No such file or directory
cp: /Users/john/Library/Services/Emacs Anywhere.workflow/Contents/QuickLook: No such file or directory
cp: /Users/john/.emacs_anywhere/Emacs Anywhere.workflow/Contents/QuickLook: unable to copy extended attributes to /Users/john/Library/Services/Emacs Anywhere.workflow/Contents/QuickLook: No such file or directory
cp: /Users/john/Library/Services/Emacs Anywhere.workflow/Contents/QuickLook/Thumbnail.png: No such file or directory
cp: /Users/john/Library/Services/Emacs Anywhere.workflow/Contents/document.wflow: No such file or directory
cp: /Users/john/Library/Services/Emacs Anywhere.workflow/Contents/Info.plist: No such file or directory
@zachcurry
Copy link
Owner

Hi @jsholmes,

If memory serves, I recall the install working as expected with Mojave. Judging by the console output, your environment requires your permission to write to your ~/Library/Services directory. You can complete the installation process (manually) by copying ~/.emacs_anywhere/Emacs Anywhere.workflow to ~/Library/Services. Then, you should be ready to proceed as per usual and assign a keyboard shortcut to the service as described in the README.

Thank you for bringing this issue to our attention, @jsholmes. And, feel free to let us know if the steps I have prescribed do, or do not work for you.

If anyone else runs into the issue that @jsholmes has, leave a comment. I'll accept a pull request mentioning this issue in the README.

Go with Emacs,
Z

@NatHarari
Copy link

Hey there, I'm trying it with Spacemacs and it half-works. Currently on Catalina, 10.15.1, Spacemacs Dev 0.3 latest build (it changes all the time so whatever is current since the last day or two or three), using Firefox 70.0.1 to test input.

I set my keystroke to control-shift-E in the system preferences after installing emacs-anywhere with curl (no problems there). I then tried the keystroke in this input text area (and others such as twitter input) and it doesn't work. If I do it via menu Firefox > Services> Emacs Anywhere, it will pop up the Emacs/Spacemacs buffer just fine, but when I type something, and hit SPC F d (to quit the buffer), I get the following:

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)
36:68: execution error: System Events got an error: osascript is not allowed to send keystrokes. (1002)”

As a pop-up after the buffer disappears.

Not exactly sure what to do or what's wrong. I googled and it appears to of course be some sort of permissions error, but unsure as to the remedy as of yet. Just wondering if you had any ideas.

Thanks for any info!

@d1egoaz
Copy link

d1egoaz commented Apr 22, 2020

@NatHarari for your issue you need to make sure that Script Editor is in
System Preferences > Security & Privacy > Privacy > Accessibility

if not, add it, Script Editor is in /Applications/Utilities/Script Editor.app

@d1egoaz
Copy link

d1egoaz commented Apr 22, 2020

#67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants