Just a quick update. I changed the makeInboxTask function, a bit of a sloppily re-write, but it now works with a project:
Code:
on makeInboxTask(theName, theProject, theContext, theNote) tell application "OmniFocus" to tell default document set theTask to make new inbox task with properties {name:theName} if theNote is not missing value then set note of theTask to theNote if theContext is not missing value then set context of theTask to theContext if theProject is not missing value then set theProject to project theProject set assigned container of theTask to theProject compact end if end tell end makeInboxTask