Created
August 6, 2012 16:55
-
-
Save pdxmph/3276557 to your computer and use it in GitHub Desktop.
Simple OmniOutliner outline to org mode
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 | |
require "rubygems" | |
require "appscript" | |
include Appscript | |
oo = app("OmniOutliner Professional") | |
outline = oo.documents[1].get | |
rows = outline.rows.get | |
rows.each do |r| | |
puts "*" * r.level.get + " #{r.topic.get}" | |
puts r.note.get + "\n\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment