Created
December 16, 2011 03:17
-
-
Save monsieuroeuf/1484272 to your computer and use it in GitHub Desktop.
rb-appscript to delay a selected event in Things by one day
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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