4 ms·
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
by mthoms 10y ago
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.