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

 
export -> process -> import Thread Tools Search this Thread Display Modes
I'd very much like to be able to programatically edit my list of tasks. For example, I'd like to find all the tasks with a special annotation and increment the due date for those tasks by a day. I want to export my OmniFocus database to some format (XML would be great), process it in a manner of my own design, and import the changed data back into OmniFocus. This could all be done as a batch process.

exporter:
I can see that OF supports exporting to an OmniFocus document, which is a folder containing a zipped XML file, containing all my tasks. That would work just fine for my purposes.

process:
I am a programmer, so I can figure out how to transform the data (assuming it's in a commonly understood format, like XML).

importer:
If I change one of the task descriptions or dates in the XML file, and reverse the unpacking process (zipping it up, using the same cryptic name as the orignal OmniFocus .zip file), and then try to import the result file into OmniFocus, Omnifocus balks. Perhaps OF balks because the name of the file is no longer correct, because it needs to reflect the contained data, as in a checksum. But that's just a guess.

Can someone suggest how to perform a round-trip export -> process -> import activity?

-- Bill
 
Might be easier to code in Applescript to manipulate the data inside OmniFocus...for a simple example, have a look at Dan Byler's Defer script.
 
I agree with whpalmer4 that the applescript library is likely to be the core of an optimal solution.

There are faster ways of getting data out (SQL queries on the cache - some examples on this forum) but Applescript provides much the best way of getting data in ...

(And the schema of the cache is liable to change suddenly between builds, whereas the applescript interface is both supported and fairly stable).
 
Thanks guys. I was hoping to avoid learning Yet Another Programming Language, but it looks inevitable. Apple Script documentation, here I come.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to export and import to and from Onenote dwbrown77 OmniOutliner 3 for Mac 0 2012-12-26 04:46 AM
OO iPad - Sync vs Import/Export? [A: Import/Export; mail ninjas to request sync.] countdrachma OmniOutliner for iPad 6 2011-05-10 11:58 PM
Database export import not possible jochen OmniFocus 1 for Mac 2 2009-07-23 08:29 AM
SVG export/dot import Vincent22 OmniGraffle General 2 2007-01-10 03:24 PM


All times are GMT -8. The time now is 06:15 PM.


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