i have a shell script in Automator run as a Service/quick Action
workflow receives current text in any application
Run Shell Script:
pbcopy
python -m webbrowser https://translate.google.com/?hl=en&tab=wT
sleep 3s
pbpaste
I highlight the text, run the service, pbcopy copies it to the clipboard, the python command opens Google Translate, the sleep command lets the web site fully load so I have a nice blinking cursor in the text box But it won’t paste automatically. I have to manually do it through the Paste menu item.or command-v. Any ideas?
I used a little piece of applescript to replace the pbpaste part but I’m still can’t figure out why pbpaste doesn’t paste anything
Model: macbook pro 23" mid 2012
AppleScript: current
Browser: Firefox 68.0
Operating System: macOS 10.14