app/thl_menu_bar.rb
# Selecting a task in the menu triggers this.  The tasks have their
# IDs stored as representedObjects, and so can be looked up that way.
Selecting a task in the menu triggers this.  The tasks have their
IDs stored as representedObjects, and so can be looked up that way.
Selecting a task in the menu triggers this . The tasks have their IDs stored as representedObjects and so can be looked up that way .
def show(sender)
    NSWorkspace.sharedWorkspace.openURL(NSURL.URLWithString(@task_menu[sender.representedObject].url))
    `osascript -e 'tell application "System Events" to keystroke "2" using {command down}'`
    sleep 0.1
    `osascript -e 'tell application "System Events" to keystroke "b"'`
  end
def show ( sender ) NSWorkspace . sharedWorkspace . openURL ( NSURL . URLWithString ( @task_menu [ sender . representedObject ] . url ) ) ` osascript -e 'tell application "System Events" to keystroke "2" using {command down}' ` sleep 0.1 ` osascript -e 'tell application "System Events" to keystroke "b"' ` end
Selecting a task in the menu triggers this.
Selecting a task in the menu triggers this .
#@hitlist.activate # `osascript -e 'tell application "Pomodoro" to start "#{sender.title}" duration 25'`
sender