View Single Post
There has been some recent discussion of exporting all active OmniFocus tasks to OPML for review in mind map software.

Another script on this forum (originally intended for exports of GUI-selected projects and tasks) can more or less be cajoled into exporting the whole set of active data, but takes several minutes to do this through the Applescript interface.

Here is a script which takes a different approach, using Python to read the Sqlite cache.

Note: requires OS X 10.7 and above (Python 2.7)

The export now only takes a second or two on my system, but in the current version only exports (by default) the names and notes of all the active folders, projects and tasks (i.e. it's currently skipping dates, contexts etc).

If you edit the following line at the top of the script:

Code:
property pIncludeLinks : 0 -- 0 to omit  links to OF tasks, 1 to include them
You can request the script to include links of the form:

Code:
omnifocus:///task/o49Lh0LPVjA
On the iPad, iThoughtsHD will then link each node to the corresponding task in OmniFocus for iPad. Holding a finger down on the iThoughts node for a second or two will enable you to jump straight to the relevant task in iPad OmniFocus.

Why not include export of links as a default ?

Well, including links will mean that every iThoughtsHD node has a tiny green globe at the corner (haven't found a way of switching this off :-) and will add few seconds both to the initial export from Desktop OmniFocus to OPML, and to the time it takes iThoughtsHD to read the OPML in.

A pre-alpha draft. Suggestions and bug reports welcome.

--
Attached Files
File Type: zip ActiveOF2OPML-007b.scptd.zip (15.7 KB, 1841 views)
File Type: zip ActiveOF2OPML-011.scptd.zip (24.1 KB, 1956 views)

Last edited by RobTrew; 2012-10-09 at 11:08 PM.. Reason: ver 0.011 translates message:%3C to message://%3C