View Single Post
Greetings,

I want to export data from the right pane in OF, using shell scripting and Python.

So far I have:

#!/usr/bin/env python
from ScriptingBridge import *

def process_tree(tree):
for el in tree.trees():
print el.name()
process_tree(el)


of = SBApplication.applicationWithBundleIdentifier_("co m.omnigroup.OmniFocus")
doc = of.defaultDocument()
tree = doc.documentWindows()[0].content()
process_tree(tree)


But I can't find a way to get the actual task from a tree element. el.name() does work, but other properties (deadline, note) doesn't.

What is the correct syntax?

Thanks for any help
Ksenia