Skip to content

Instantly share code, notes, and snippets.

@onelesd
Last active August 29, 2015 14:13
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save onelesd/741a0a459697bc22ce01 to your computer and use it in GitHub Desktop.
Focus slack window and next unread conversation
activate application "Slack"
tell application "System Events" to tell process "Slack"
key code 125 using {option down, shift down}
end tell
-- use with FastScripts - http://www.red-sweater.com/fastscripts/
-- FastScripts pauses script execution before key presses until
-- you've released the hotkey meta character. This makes it more
-- reliable than just running it as a Service via a shortcut in
-- System Preferences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment