View Single Post
Here is a workaround, using applescript within Python, as Wim suggested:

Code:
import os

def createInboxTask(name):
                cmd = """osascript<<END
                tell front document of application "OmniFocus"
                    set newTask to make new inbox task with properties {name: "(Placeholder)"}
                end tell
                END"""
                os.system(cmd)
                
                newTask = [task for task in of.application.defaultDocument().inboxTasks() if task.name()=='(Placeholder)'][0]
                newTask.setName_(name)
                return newTask