Created
August 30, 2017 19:48
-
-
Save swalberg/f1e5b65896bcdad4e2a5d8a3aaa89e25 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 clear" | |
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 |
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