The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   make new inbox task (http://forums.omnigroup.com/showthread.php?t=7072)

Jacco 2008-02-06 03:56 AM

make new inbox task
 
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.

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


All times are GMT -8. The time now is 01:04 AM.

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