Heh; I was just about to come post something about this.
Here are some examples:
Code:
tell app "OmniFocus"
tell quick entry
-- activate the quick entry panel for the default document
-- unlike the UI hook this won't add the default empty task
activate
end
end
Code:
tell app "OmniFocus"
tell quick entry
make new inbox task with properties {name:"foo"}
select {task 1}
save -- saves, closes and clears the panel as if you'd hit the 'Save' button
end
end
Code:
tell app "OmniFocus"
tell quick entry
close saving no -- discards the data; yes saves
end
end
Code:
tell app "OmniFocus"
tell quick entry
close -- with no 'saving' specified, just hides the panel w/o saving or reverting the data.
end
end
The 'delete' command and tree suite should be supported too (quick entry is a subclass of tree in the script suite), though I've only tested the select command so far.
All the rich text & attachment scripting should work too on task notes as well, but it's received only limited testing in the Quick Entry configuration (the code is nearly all shared, so if something is busted it should be pretty easy to fix).
I still need to support the 'complete' command and as of yet, trying to assign a context or project to an inbox item will not work if you try to mix-n-match objects from different documents (where quick entry acts like a little document of its own). You could probably work around this (untested) by finding the project/context you want in the main document and then doing something like:
Code:
tell quick entry
set context of MyTask to context id (id of MyContextFromDocument)
end
I would like to find time to auto-map these sorts of assignments, but I don't know if I'll find time before 1.0.