Created
April 14, 2017 18:24
-
-
Save swalberg/c397603e3efd9096010b01f35f66de1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell application "Slack" to activate | |
key code 18 using {command down} | |
delay 1 | |
keystroke "/status pomodoro" | |
delay 0.5 | |
key code 36 | |
delay 0.3 | |
keystroke "/away " | |
delay 0.5 | |
key code 36 | |
delay 0.3 | |
set visible of process "Slack" to false | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment