Skip to content

Instantly share code, notes, and snippets.

@monsieuroeuf
Created December 16, 2011 03:17
Show Gist options
  • Save monsieuroeuf/1484272 to your computer and use it in GitHub Desktop.
Save monsieuroeuf/1484272 to your computer and use it in GitHub Desktop.
rb-appscript to delay a selected event in Things by one day
#!/usr/bin/env ruby -wKU
require "rubygems"
require 'appscript'
require "date"
things = Appscript.app('Things.app')
tomorrow = DateTime.now.next_day
things.selected_to_dos.get.each { |todo| things.schedule(todo, :for => tomorrow) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment