Skip to content

Instantly share code, notes, and snippets.

@pdxmph
Created August 6, 2012 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdxmph/3276557 to your computer and use it in GitHub Desktop.
Save pdxmph/3276557 to your computer and use it in GitHub Desktop.
Simple OmniOutliner outline to org mode
#!/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