View Single Post
I tried this:

tell application "OmniFocus"
tell front document
-- Gets target context
tell content of document window 1 -- (first document window whose index is 1)
set theSelectedItems to value of every selected tree
if ((count of theSelectedItems) < 1) then
display alert "You must first select an item to complete." as warning
return
end if
repeat with anItem in theSelectedItems
set the project of anItem to "AP, AR, Finance"
set name of the context to "Online"
set due date of the task to "today"
end repeat
end tell
end tell
end tell

I just want to set the context, project, and due date of selected items to: "Online", "AP, AR, Finance", and "Today" respectively. I tried a couple of different ways in the script above, but they both failed.

I'm sure this can't be that hard, but my AppleScript skills are missing.

Thanks,

Dave