I have been trying to write a small script using JavaScript for Automation that opens the quick entry panel with one inbox item. The AppleScript code for that would be
tell quick entry
make new inbox task with properties {name: "some name"}
open
end tell
My guess for the correct JSA would be
OF = Application("OmniFocus")
OF.quickEntry.make({"new": OF.InboxTask, "withProperties": {"name": "some name"}})
OF.quickEntry.open()
The second line fails with an error “Can’t convert type”. Do I have the right idea about how this is supposed to work in JSA? Am I seeing some bug in the JSA implementation?