Skip to content

Instantly share code, notes, and snippets.

@tdwesten
Created January 23, 2018 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdwesten/0e0713acbc831e037883aab51795366e to your computer and use it in GitHub Desktop.
Save tdwesten/0e0713acbc831e037883aab51795366e to your computer and use it in GitHub Desktop.
Set slack status by weekday
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