View Single Post
Quote:
Originally Posted by whshep View Post
Does anyone know how to modify the dbyler script to automatically set a context on all incoming items?
This is an example of setting context for new items in script:

tell application "OmniFocus"
set theName to "Hello"
set theContent to "Some content"
set theContext to context "Home Office" of context "Work" of first document
tell first document
set theTask to make new inbox task with properties {name:theName, note:theContent, context:theContext}