Last active
February 9, 2016 22:50
-
-
Save davidbeckingsale/3767016 to your computer and use it in GitHub Desktop.
Uses Brett Terpstra's `otask` app to create OmniFocus tasks from a Markdown list.
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 | |
File.foreach(ARGV[0]) do |task| | |
# Remove the * | |
the_task = task.gsub(/\*/, '') if task.include? '*' | |
# Remove trailing newline | |
the_task = the_task.strip | |
# Use Brett Terpstra's otask to add the task to OmniFocus inbox | |
`/Users/david/Applications/OTask/bin/otask -s "#{the_task}"` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment