Hi
I'm trying to recurse down my contexts thus
tell application "OmniFocus"
my onContexts(contexts of default document)
end tell
on onContexts(contextList)
repeat with aContext in contextList
my onContext(aContext)
end repeat
end onContexts
on onContext(aContext)
set contextName to name of aContext
set contextLocation to location of aContext
my onContexts(contexts of aContext)
end onContext
the contextLocation line fails with
get |location| of context id "djPQ_ENEbMN" of document id "mN0RuP1Pwwj"
"OmniFocus got an error: Can’t make |location| of context id \"djPQ_ENEbMN\" of document id \"mN0RuP1Pwwj\" into type specifier."
Can any AppleScript wizards shed any light? I have found examples of iterating over flat contexts, but not my nicely organized hierarchical structure.
Thanks in anticipation
Duncan
I'm trying to recurse down my contexts thus
tell application "OmniFocus"
my onContexts(contexts of default document)
end tell
on onContexts(contextList)
repeat with aContext in contextList
my onContext(aContext)
end repeat
end onContexts
on onContext(aContext)
set contextName to name of aContext
set contextLocation to location of aContext
my onContexts(contexts of aContext)
end onContext
the contextLocation line fails with
get |location| of context id "djPQ_ENEbMN" of document id "mN0RuP1Pwwj"
"OmniFocus got an error: Can’t make |location| of context id \"djPQ_ENEbMN\" of document id \"mN0RuP1Pwwj\" into type specifier."
Can any AppleScript wizards shed any light? I have found examples of iterating over flat contexts, but not my nicely organized hierarchical structure.
Thanks in anticipation
Duncan
Last edited by dmcg; 2009-01-06 at 02:25 PM..