Created
July 26, 2012 19:20
-
-
Save pburkholder/3183949 to your computer and use it in GitHub Desktop.
AppleScript for Away From Keyboard: Mark as away in HipChat and enable screensaver (Lock screen)
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
# Credit to Sean: http://ertw.com/blog/2012/05/02/controlling-hipchat-status-through-applescript/ | |
# I link this to a Quicksilver trigger so I can press 'Shift-Option-L' when I Leave | |
tell application "System Events" to tell UI element "HipChat" of list 1 of process "Dock" | |
perform action "AXShowMenu" | |
delay 0.5 | |
click menu item "Status" of menu 1 | |
click menu item "Away" of menu 1 of menu item "Status" of menu 1 | |
end tell | |
activate application "ScreenSaverEngine" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment