Last active
August 29, 2015 14:13
-
-
Save onelesd/741a0a459697bc22ce01 to your computer and use it in GitHub Desktop.
Focus slack window and next unread conversation
This file contains 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
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