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

Can't find this document #10

Open
vnckppl opened this issue Apr 15, 2020 · 18 comments
Open

Can't find this document #10

vnckppl opened this issue Apr 15, 2020 · 18 comments

Comments

@vnckppl
Copy link

vnckppl commented Apr 15, 2020

Is emacs-grammarly broken because of changes in the Grammarly app? I am on Grammarly 1.5.64 and when I run grammarly-save-region-and-run on a region, Grammarly opens but shows me the error message 'Can't find this document'.

@mmagnus
Copy link
Owner

mmagnus commented Apr 16, 2020

thanks, @vnckppl Yeah, now I see the problem as well.. hmm.. I have to read more about.

One workout would be to use AppleScript to open Grammarly, to "click" Edit and Paste.

This actually could be interesting workout, because based on that I could build a way to copy the Grammarly content back to the Emacs.. so maybe that Grammarly broke the plugin will be good for us :) Still I need some time to code it.

A quick and dirty workout is to downgrade Grammarly :( and wait for an update here (a few days).

Screen Shot 2020-04-16 at 11 57 56 AM

@vnckppl
Copy link
Author

vnckppl commented Apr 16, 2020

The Applescript option would be cool, although it seems you have to start a new document before you can paste, and there is no 'new document' menu option.

Finding an older version of Grammarly is challenging. I will let you know when I find a download link.

@mmagnus
Copy link
Owner

mmagnus commented Apr 16, 2020

Yeah, correct, you need to start a new document. I'm thinking if there is some way around....

@agzam
Copy link

agzam commented Apr 18, 2020

Okay, folks. It seems I'm not the only one struggling here with this Grammarly bullshit. The level of imbecilic "vision" of their UX experts is simply overwhelming. I understand why they wouldn't even try to build an API for the service. But changing the app so it is extremely painful to use, even for the paid users, makes no sense whatsoever.
I spent almost an hour, trying to come up with a workaround. Even went into exploring the app with the dev console:
open -a //Applications/Grammarly.app/contents/macos/Grammarly --args -o.

Yet I couldn't come up with any better idea, except keeping the app open of all time, with the focus on the same document - to use it as a "whiteboard." And maybe Apple Script to activate that window, and paste into it; and then clearing it up after, but never to close it.

If I'd to make it work, I would probably use Hammerspoon to introduce a keyboard watcher, for "done with the checking - want to go back to Emacs" thing, I'm not sure how to make this work with Apple Script.

@mmagnus
Copy link
Owner

mmagnus commented Apr 20, 2020

OK, for now, I found in my backup an old version of Grammarly. I renamed so it will not be overwritten the new Grammarly. This is some workout for now. This is very annoying since this Grammarly will bug you with updating it.

Screen Shot 2020-04-20 at 11 38 39 AM

@mmagnus
Copy link
Owner

mmagnus commented Apr 20, 2020

OK, this is even crazier. You can open this file I put here but it will update automatically to the newest version.. grr..

Screen Shot 2020-04-20 at 11 52 33 AM

I open "my" grammarly a few times with ignoring updates, but still, after a while the app is updated...

@mmagnus
Copy link
Owner

mmagnus commented Apr 20, 2020

BTW, rename the zip Grammarly to Grammarly_61 in your Applications

@vnckppl
Copy link
Author

vnckppl commented Apr 20, 2020

It does indeed automatically update. One way of preventing is, is to block Grammarly from phoning home, but that would just lead us further down the rabbit hole.

@mmagnus
Copy link
Owner

mmagnus commented May 8, 2020

OK, I just asked Grammarly if they can help and give us this basic funcionality :-) we'll see..

@mmagnus
Copy link
Owner

mmagnus commented May 15, 2020

Hi Marcin,

Thanks for contacting Grammarly!

Unfortunately, we don’t currently have a quick fix, but please rest assured that our team has been made aware of the issue. I can’t provide you with an estimated timeframe right now because the developers need some time to analyze the cause of the issue.

I’m going to close this case, but if you have more information regarding this issue, please reply to this email and the case will be re-opened for further investigation. We apologize for any inconvenience.

Best regards,

Claire

@vnckppl
Copy link
Author

vnckppl commented May 15, 2020

Hi Marcin,
Thanks for contacting Grammarly!
Unfortunately, we don’t currently have a quick fix, but please rest assured that our team has been made aware of the issue. I can’t provide you with an estimated timeframe right now because the developers need some time to analyze the cause of the issue.
I’m going to close this case, but if you have more information regarding this issue, please reply to this email and the case will be re-opened for further investigation. We apologize for any inconvenience.
Best regards,
Claire

Thanks for the update. That does not sound very promising, unfortunately.

@mmagnus
Copy link
Owner

mmagnus commented May 15, 2020

Yep, unfortunately :(

@mmagnus
Copy link
Owner

mmagnus commented May 20, 2020

@mmagnus
Copy link
Owner

mmagnus commented May 20, 2020

demo
the workaround using Apple Scripts works, and it's bidirectional..

@mmagnus
Copy link
Owner

mmagnus commented May 20, 2020

I also played a bit with sending the content to/from Safari and Grammarly, but nothing yet complete.

tell application "System Events"
	tell process "Safari"
		set frontmost to true
		tell application "Safari" to open location "https://app.grammarly.com/ddocs/771448507"
		delay 3
		click menu item "Paste" of menu "Edit" of menu bar 1
	end tell
end tell

your doc that is designed for Sandbox

BTW, for me, this Safari works faster than a stand-alone application. .hmm... maybe this is the way to go ...

@mmagnus
Copy link
Owner

mmagnus commented May 21, 2020

@vnckppl
Copy link
Author

vnckppl commented May 27, 2020

Hi mmagnus,
Thanks for your work on this! I am able to use the scrips, but I do have to have Grammarly open with an empty document opened. Is this supposed to be the case?
Thanks!

@mmagnus
Copy link
Owner

mmagnus commented May 28, 2020

@vnckppl yeah, I could not get this running when the window is minimized. I'm missing something.. :(

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

3 participants