Member
2007-10-10, 02:40 PM
Tim, we're almost there.
Here's what I almost have working now:
Code:
tell application "OmniFocus"
tell quick entry
-- Need to make task before activating or we get two tasks
make new inbox task with properties {name:"foo", note:"bar"}
activate
-- Need to use tree 1, rather than {task 1} as in
-- posted example
select tree 1
set note expanded of tree 1 to true
end tell
end tell
If I activate before making the new task, then I get two tasks: the "foo" task added by the script and a new empty task.
If I add the task before activating, then the task pane in the QE window does not have focus. That necessitates a trip to the mouse in order to edit the new task.
Also, no joy in setting the context of the QE task.
__________________
Cheers,
Curt
Last edited by curt.clifton; 2007-10-10 at 02:47 PM..