PDA

View Full Version : make new inbox task


Jacco
2008-02-06, 03:56 AM
Hello,

I'm trying to modify Curt Cliftons "Send URL to OmniFocus" script, so that it adds a project and context to the task while executed, but I seem to fail in this.

make new inbox task with properties {name:(actionPrefix & theName), note:theURL}

When I read the AppleScript dictoinary for OmniFocus, I see:

name (text) : The name of the task.
note (rich text) : The note of the task.
containing project (project, r/o) : The task's project, up however many levels of parent tasks. Inbox tasks aren't considered contained by their provisionalliy assigned container, so if the task is actually an inbox task, this will be missing value.
parent task (task, r/o) : The task holding this task. If this is missing value, then this is a top level task -- either the root of a project or an inbox item.


So I hacked the script like this:

make new inbox task with properties {name:(actionPrefix & theName), note:theURL, context:"test",containing project:"test" }

But then it fails silently. I hope some can shed some clue on my understanding of this subject?

Best,

Jacco

RobTrew
2008-02-07, 12:10 PM
Your problem may be that r/o ("read/only") properties can not be set.

Alex Brown
2008-02-18, 08:12 AM
You can't just supply the text name of the project or context - you must find the actual project or context object.

There are a number of ways to do this, please refer to the scripting dictionary.