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

 
Creating new task directly in XML for WebDAV Thread Tools Search this Thread Display Modes
I'd like to create a quick and dirty Android app that will allow me to create a new task for my Inbox, and upload it directly to my private WebDAV server. Looking at the XML file for adding a new task, it seems I need to create a valid task id and a rank. The other fields look pretty self explanatory.

Does anyone know how OmniFocus creates the task IDs, and if it's possible for me to safely create my own task ID in my own app?
 
I'm gonna move this thread over to the Extras forum, as I think those folks are more likely to have the information you're looking for.
 
See this post for the info you're looking for.

My reading there is that you can generate your own TaskID, but you want to be careful not to generate one that conflicts with an existing ID. (Either one that OmniFocus generated, or one you generated yourself.)

I hope that helps, but please note that I am not an engineer, so take all of the above with a grain of salt. Or possibly a mole of grains. ;-)
 
Oh interesting. Let me give this a try. Thanks for the pointer!
 
OK cool, it totally works. Thanks for the pointer! The one thing I don't understand is how to know which task id to use as the "old" task. In reading Ken's description of the naming convention, you follow the date stamp with old_id+new_id. But if I'm just adding a brand new item (not modifying an old transaction), how do I know what ID to use for the old_id?

Again, my use case here is that I plan to write a dead simple Android app that will allow me to quickly add a task directly to my webdav server, so my OmniFocus app will pick it up on the next sync.

If it all possible, I'd like to avoid having to read and parse the existing database.
 
There's always a file named 0000... that is the root of the tree. Go there and follow the id links.

I compacted my database, so there was only the 0000... file, then added an action. You can how the new files were linked in in the attached screenshots.
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2013-01-27 at 2.36.31 AM.png
Views:	670
Size:	17.0 KB
ID:	2696   Click image for larger version

Name:	Screen shot 2013-01-27 at 2.36.41 AM.png
Views:	691
Size:	29.3 KB
ID:	2697  
 
Quote:
Originally Posted by whpalmer4 View Post
There's always a file named 0000... that is the root of the tree. Go there and follow the id links.

I compacted my database, so there was only the 0000... file, then added an action. You can how the new files were linked in in the attached screenshots.
Awesome, thanks whpalmer4!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgot how to link iCal and other programs directly into my task list ssavanna OmniFocus 1 for Mac 1 2012-01-11 10:58 PM
Creating a sub-task in OmniFocus jim0203 OmniFocus 1 for Mac 4 2011-11-08 09:09 AM
Creating A Project Directly in a Folder adgirard OmniFocus 1 for Mac 3 2008-10-27 03:19 PM
Create OF task directly from mail message jessegray OmniFocus 1 for Mac 4 2008-01-01 01:16 PM
Creating Task from E-Mail? tango OmniFocus 1 for Mac 1 2007-06-29 02:17 PM


All times are GMT -8. The time now is 02:33 PM.


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