- Joined
- Feb 19, 2012
- Messages
- 14
- Reaction score
- 0
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?
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?