Y
Hacker News
new
|
ask
|
show
|
jobs
by
swsieber
3050 days ago
Hmm... I'm not very familiar with this, but couldn't you send a key command to select the entire text (CMD A)?
2 comments
d1egoaz
3050 days ago
I'm not very familiar either. But the Automator workflow starts with "receives selected text", so I'm not sure it has access to the current text field
link
swsieber
3049 days ago
Did not know that. I've used HammerSpoon on Mac, and you can send key shortcuts with that... you could probably glue them together easily
link
d1egoaz
3046 days ago
osascript is our friend
osascript -e 'tell application "System Events" to keystroke "a" using command down'
link