Sendkeys: Command line tool for automating keystrokes and mouse events on macOS
30 points by nateb2022 1 day ago | 11 comments- supersixirene 19 hours agoThis is legend. I’ll be putting this to extensive use tomorrow.
- robterrell 17 hours agoYou've always had this ability, but with more convoluted syntax:
Specify the application too with multiple -e parameters. This will copy whatever is selected in Safari:osascript -e "tell application \"System Events\" to keystroke \"whatever\""
osascript -e "tell application \"Safari\" to activate" -e "tell application \"System Events\" to keystroke \"c\" using {command down}"
- robterrell 17 hours ago
- pkoird 13 hours agoWonder how this compares to Autohotkey on Windows.
- eviks 13 hours agoAhk isn't cli, and also is a full-blown programming language, so not as limited in its input
- eviks 13 hours ago
- biomcgary 13 hours agoNow to finetune my local LLM on the sendkeys syntax, add kyutai for streaming voice recognition, and my mac will be fully voice operable.
- lukaslukas 20 hours agoNice. But why?
- ivanche 19 hours agoFor example to automate what couldn't be automated otherwise.
- supersixirene 19 hours agoFor example to deal with software designers that think web browsers are people
- supersixirene 19 hours ago
- ivanche 19 hours ago