The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
make new inbox task Thread Tools Search this Thread Display Modes
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}
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.

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?

Best,

Jacco
 
Your problem may be that r/o ("read/only") properties can not be set.
 
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.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make it easier to create several new items in the inbox? [A: open feature request.] mgorman85 OmniFocus for iPad 1 2011-12-13 01:01 PM
Can I forward a E-Mail to Omni and you make it a task? Librerio Applying OmniFocus 1 2011-10-30 01:37 AM
How to make a task nonrepeating? scb OmniFocus Extras 7 2011-09-16 04:37 PM
Make new task problems gordonworley OmniFocus Extras 1 2009-06-28 06:01 AM
Way to make a daily task only on weekdays? cshumate OmniFocus 1 for Mac 2 2009-01-11 03:06 PM


All times are GMT -8. The time now is 05:16 AM.


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