The Omni Group Forums

The Omni Group Forums (
-   OmniFocus Extras (
-   -   make new inbox task (

Jacco 2008-02-06 04:56 AM

make new inbox task

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.

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

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

[CODE]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.[/CODE]

So I hacked the script like this:

[CODE]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?



RobTrew 2008-02-07 01:10 PM

Your problem may be that r/o ("read/only") properties can not be set.

Alex Brown 2008-02-18 09: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.

All times are GMT -8. The time now is 09:39 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.