Most active commenters
  • eviks(3)

26 points nateb2022 | 12 comments | | HN request time: 1.436s | source | bottom
1. lukaslukas ◴[] No.44483594[source]
Nice. But why?
replies(1): >>44483763 #
2. ivanche ◴[] No.44483763[source]
For example to automate what couldn't be automated otherwise.
replies(1): >>44483789 #
3. supersixirene ◴[] No.44483781[source]
This is legend. I’ll be putting this to extensive use tomorrow.
replies(1): >>44484747 #
4. supersixirene ◴[] No.44483789{3}[source]
For example to deal with software designers that think web browsers are people
5. robterrell ◴[] No.44484747[source]
You've always had this ability, but with more convoluted syntax:

  osascript -e "tell application \"System Events\" to keystroke \"whatever\""
Specify the application too with multiple -e parameters. This will copy whatever is selected in Safari:

  osascript -e "tell application \"Safari\" to activate" -e "tell application \"System Events\" to keystroke \"c\" using {command down}"
replies(1): >>44486334 #
6. pkoird ◴[] No.44486201[source]
Wonder how this compares to Autohotkey on Windows.
replies(1): >>44486321 #
7. biomcgary ◴[] No.44486285[source]
Now to finetune my local LLM on the sendkeys syntax, add kyutai for streaming voice recognition, and my mac will be fully voice operable.
8. eviks ◴[] No.44486321[source]
Ahk isn't cli, and also is a full-blown programming language, so not as limited in its input
9. eviks ◴[] No.44486334{3}[source]
How do you stimulate delays, animation intervals, key down/ups a with System Events?
replies(1): >>44487231 #
10. bestham ◴[] No.44487231{4}[source]
Apple Script is a programming language and you have full control flow at your disposal to wait and branch as needed.
replies(1): >>44487294 #
11. eviks ◴[] No.44487294{5}[source]
This is too generic to answer this specific question. Key down, for example, is not an inherent property of a programming language.

(and neither is delay precision guarantees, which might be important for some key sequences)