Hacker News new | ask | show | jobs
by blainesch 3450 days ago
I would LOVE auto paste, but I've not found a good way to do this in Electron yet. ]:

If you know how, let me know :D

1 comments

I've not used electron but can't you simply invoke Applescript or use a shell command? Checkout pbcopy + pbpaste utilities or use applescript:

    $ osascript -e 'tell application "System Events" to keystroke "v" using command down'
I realize this isn't cross platform but there should be similar methods in other OS'es.