26 points | by nateb2022 17 hours ago
4 comments
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}"
(and neither is delay precision guarantees, which might be important for some key sequences)
(and neither is delay precision guarantees, which might be important for some key sequences)