Skip to content

Instantly share code, notes, and snippets.

@filemon
filemon / gist:27dbe284c31e1bc0e23f
Last active August 29, 2015 14:25
Pomodoro & Hipchat - set status msg to available
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 "Available" of menu 1 of menu item "Status" of menu 1
end tell
@filemon
filemon / gist:83365cf8a195f692f681
Created July 22, 2015 13:07
Pomodoro & Hipchat start script to update status msg
set timeStr to time string of ((current date) + (25 * minutes))
set cmd to "dnd Pomodoro in progress till " & timeStr
tell application "HipChat"
activate
tell application "System Events"
tell process "HipChat"
set window_name to name of window 1
end tell
# OUTPUT
service.response do |response|
response.array :analysisDefinitions do |analysis_definition|
analysis_definition.string :code
analysis_definition.string :name
analysis_definition.string :description
end
response.object :links do |links|
links.string :next
links.string :prev