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

 
Applescript example: exporting to a text file Thread Tools Search this Thread Display Modes
Here is a simple script intended to demonstrate how one can move task by task through the whole Omnifocus database using Applescript.

It simply lists the names of all folders, projects and tasks in a tab-indented text file, and opens the file in the default text editor.

Not exceptionally useful (doesn't list dates etc) but it may serve as reference for anyone writing something more sophisticated.

Last edited by RobTrew; 2011-07-05 at 08:47 AM..
 
thanks in advance

isidoro

PS: will it work if my Mac is used in any non-English language (i.e Spanish)???
 
Should be no problem.
 
I've been waiting for something like this! Thanks! I feel more comfortable having a plain text back up.

Steve
 
It's worth noting that the OmniFocus file format is simply gzipped XML, so should you need to do something with your data, it's there for easy use.
 
Quote:
Originally Posted by Tim Wood View Post
so should you need to do something with your data, it's there for easy use.
A good point, though "easy" might need to be reformulated.

My understanding is that the XML structure is transactional (recording a series of insertions, deletes etc) rather than structural, and that it would therefore be difficult to write an XSLT transform to generate a simple ordered document out of all the transactions.

Is that correct ?
 
Quote:
Originally Posted by RobTrew View Post
My understanding is that the XML structure is transactional (recording a series of insertions, deletes etc) rather than structural, and that it would therefore be difficult to write an XSLT transform to generate a simple ordered document out of all the transactions.

Is that correct ?
This is correct to an extent for the file in ~/Library/Application Support/OmniFocus. This allow us to write small changes rather than writing the entire file (with our changes mirroring the SQL operations that happen in the CoreData database). The backups that OmniFocus writes are fully flattened into a single XML file, however.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting a file in CMYK or RGB svetag OmniGraffle General 0 2012-04-22 07:19 AM
Exporting and sharing an OF file for someone else omnibob OmniFocus 1 for Mac 4 2012-01-18 04:11 PM
Exporting an OO file with graphics jenbenn OmniOutliner 3 for Mac 1 2011-04-13 11:52 AM
Applescript to write todays completed tasks to a text file december76 OmniFocus Extras 7 2010-09-02 12:03 PM
applescript to export to text file? jbaile38 OmniFocus Extras 3 2008-09-06 01:01 PM


All times are GMT -8. The time now is 06:20 AM.


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