Skip to content

Instantly share code, notes, and snippets.

@crbyxwpzfl
Last active October 23, 2022 11:07
Show Gist options
  • Save crbyxwpzfl/21e40844d5b401870942ea53d5fc7a58 to your computer and use it in GitHub Desktop.
Save crbyxwpzfl/21e40844d5b401870942ea53d5fc7a58 to your computer and use it in GitHub Desktop.
tell application "Messages" to activate
delay 2
tell application "System Events" to keystroke "f" using command down
tell application "System Events" to keystroke "L"
delay 2
tell application "System Events" to keystroke tab using control down
delay 1
tell application "System Events" to keystroke tab using control down
delay 1
tell application "System Events" to keystroke tab using control down
delay 0.5
tell application "System Events" to keystroke space
delay 0.5
tell application "System Events" to key down tab
tell application "System Events" to keystroke "m"
delay 0.5
tell application "System Events" to key code 124
tell application "System Events" to key up tab
delay 0.2
tell application "System Events" to key code 126
delay 0.2
tell application "System Events" to keystroke space
delay 0.5
tell application "System Events" to keystroke tab
delay 0.5
tell application "System Events" to keystroke space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment