Skip to content

Instantly share code, notes, and snippets.

@ebonical
Created May 25, 2011 13:05
Show Gist options
  • Save ebonical/990928 to your computer and use it in GitHub Desktop.
Save ebonical/990928 to your computer and use it in GitHub Desktop.
Script for starting Pomodoro
#!/usr/bin/env ruby -w0
#
# Using Pomodoro app by iUgol
# http://itunes.apple.com/en/app/pomodoro/id417574133?mt=12
#
require "rubygems"
require "appscript" # gem install rb-appscript
include Appscript
module Pomodoro
def pom
app('Pomodoro')
end
def start(message)
pom.start(message, :duration => 25)
end
# TODO interruptions
extend self
end
begin
action = ARGV.shift
Pomodoro.send(action, ARGV.join(' '))
rescue; end
@ebonical
Copy link
Author

Settings in Alfred
Alfred Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment