Skip to content

Instantly share code, notes, and snippets.

@pdxmph
Created August 6, 2012 16:55
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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