Skip to content

Instantly share code, notes, and snippets.

View davidbeckingsale's full-sized avatar
👨‍💻
git-ing things done

David Beckingsale davidbeckingsale

👨‍💻
git-ing things done
View GitHub Profile
@davidbeckingsale
davidbeckingsale / md-to-of.rb
Last active February 9, 2016 22:50
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