Pressing a button in Google Chrome or Firefox web page using applescript
Find text on a page and click next to it
Martin, did you test your macro? Even with the correction it does not work for me.
I'm running FireFox 54.0.1 (5417.6.28) on macOS 10.11.6.
You can't insert by pasting. You have to TYPE:
With that change, your macro works.
Martin, as I mentioned above, your macro does not work for me.
However, it does work, if you make EITHER of these changes:
Here's my revised macro:
~~~ VER: 1.0 2017-07-28 ~~~
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.
OK, here’s a follow-up, for anyone:
Let’s say I create a JSON string, or any string actually, how do I get that into KM, or even the Clipboard?
Actually I did test with Paste. It worked for me. I had previously used Type but got impatient: A non-trivial script would take a long time to type.
As for returning results I can only think of using a localhost web server to tickle KM. Luckily each Mac comes with one. But this would be a pain to use.
Maybe 8.0 will offer some help.