Skip to content

Instantly share code, notes, and snippets.

@davidbeckingsale
Last active February 9, 2016 22:50
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidbeckingsale/3767016 to your computer and use it in GitHub Desktop.
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.
#!/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