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 |