Skip to content

Instantly share code, notes, and snippets.

@pburkholder
Created July 26, 2012 19:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pburkholder/3183949 to your computer and use it in GitHub Desktop.
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)
# 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