Created
January 23, 2018 11:11
-
-
Save tdwesten/0e0713acbc831e037883aab51795366e to your computer and use it in GitHub Desktop.
Set slack status by weekday
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
launch application "Slack" | |
set currentDay to weekday of (get current date) | |
if currentDay = Tuesday then | |
tell application "System Events" | |
tell application "Slack" to activate | |
key code 18 using {command down} | |
delay 1 | |
keystroke "/status :baby_bottle: Yo, ben druk met poepluiers enzo.." | |
delay 0.5 | |
key code 36 | |
delay 0.3 | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment