The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Today's Posts

 
Using ScriptingBridge to iterate tasks in the right pane Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
switching from context or project pane to actions pane adept OmniFocus 1 for Mac 1 2011-05-05 05:47 AM
How to show "parent" tasks [A: Data pane of OF preferences in v1.9 or later.] msurtees OmniFocus 1 for Mac 4 2011-04-19 03:53 PM
How do I iterate over ALL shapes in a canvas? supertwang@yahoo.com OmniGraffle Extras 1 2007-08-20 09:59 AM
Notes in Pane commensal OmniFocus 1 for Mac 0 2007-07-16 12:09 PM
Tabs in a pane climbingtractor OmniWeb Feature Requests 2 2006-07-13 09:35 PM


All times are GMT -8. The time now is 10:05 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.