Or even, (if
id is the only property that you need to get from the new task object that is returned by the
make command):
Code:
tell application "OmniFocus"
tell front document
set strID to id of (make new inbox task with properties {name:"test", note:"test 2", flagged:true})
end tell
end tell