hi everybody,
I am trying to write a function to replace the currently selected text
with different text.
The problem is that if I use
hs.eventtap.keyStrokes(result)
the selected text is not overwritten.
If I use a clipboard:
hs.pasteboard.setContents(result)
hs.eventtap.keyStroke({"cmd"}, "v")
it works as expected, but... it does not work in applications that
have override cmd-V (for example emacs)
is there a way to generate the paste event directly?
thank you,
--
--dmg
---
D M German
http://turingmachine.org