The Omni Group Forums

The Omni Group Forums (
-   OmniFocus Extras (
-   -   export -> process -> import (

compraxis 2011-04-01 09:20 AM

export -> process -> import
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.

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.

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

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

whpalmer4 2011-04-01 10:39 AM

Might be easier to code in Applescript to manipulate the data inside OmniFocus...for a simple example, have a look at Dan Byler's [URL=""]Defer script[/URL].

RobTrew 2011-04-01 10:25 PM

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).

compraxis 2011-04-02 03:58 AM

Thanks guys. I was hoping to avoid learning Yet Another Programming Language, but it looks inevitable. Apple Script documentation, here I come.

All times are GMT -8. The time now is 02:41 AM.

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