psidnell / ofexport Goto Github PK
View Code? Open in Web Editor NEWAn OmniFocus database export tool
License: Other
An OmniFocus database export tool
License: Other
Downloaded & unzipped.
Ran install & followed to best of my ability. (placed in my username dir. Initially there were errors but I seem to have resolved them. Now a terminal command completes w/o error but I can find any output.
Here's the command from "examples" on your site. (I want only to output flagged items and then I'm going to use GeekTool to get them to the Desktop):
ofexport -E -a done=any -I -t "flagged or (due='to tomorrow')" -o /tmp/ex8-due-or-flagged.taskpaper
I've run it with .taskpaper and then .txt as the last part of the command and then searched for anything created with those extensions and found nothing. Please let me know if there's more I should be looking for or anything I could do. As a note, I haven't set up the Hazel Rule since I think it needs the output to act on and it doesn't exist yet, but perhaps that's wrong.
Thanks
I use .todo
as the extension for my TaskPaper files, so I tried to tell ofexport to write a file with this extension using the taskpaper-lite
template, but this throws an error:
$ ofexport -T taskpaper-lite -o ~/Desktop/Test-taskpaper-lite.todo --open
Traceback (most recent call last):
File "~/.../ofexport/src/main/python/ofexport.py", line 258, in <module>
raise Exception ('unknown format ' + fmt)
Exception: unknown format todo
Just installed ofexport.
Three questions:
Is there any way to output only tasks that are available (or alternatively, exclude completed tasks)?
Is there any way to output the tasks that would be included in a Perspective?
Is there a way to only include the task name and due date in the output? (no notes, no, defer date, etc)
I think maybe I have a corrupted db but I'm at a loss on ideas to fix it. I'm using OmniFocus 2 with a database that migrated with me through the various betas of OmniFocus 2.
Only some of my folders are seen but many are not. I get the following trace back in terminal when trying to run ofexport without any parameters:
Traceback (most recent call last):
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/ofexport.py", line 239, in <module>
m.generate(out, root_project, root_context, project_mode, template_dir, type_config)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/plugin_text.py", line 24, in generate
format_document (subject, visitor, project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/fmt_template.py", line 166, in format_document
traverse_list (formatter, root.children, project_mode=project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 260, in traverse_list
traverse (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 265, in traverse
traverse_folder (visitor, item, ignore_marked=ignore_marked)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 319, in traverse_folder
traverse_list (visitor, folder.children, ignore_marked=ignore_marked)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 260, in traverse_list
traverse (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 270, in traverse
traverse_project (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 307, in traverse_project
traverse_list (visitor, project.children, ignore_marked=ignore_marked, project_mode=project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 260, in traverse_list
traverse (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 272, in traverse
traverse_task (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 291, in traverse_task
visitor.begin_task (task)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/fmt_template.py", line 97, in begin_task
self.update_attribs(task, 'task')
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/fmt_template.py", line 147, in update_attribs
attribs = self.template.attrib_map_builder.get_values (item)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/attrib_convert.py", line 91, in get_values
value = conversion.value (x, self.type_fns)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/attrib_convert.py", line 49, in value
value = type_fns[self.type] (value)
File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/attrib_convert.py", line 63, in <lambda>
self.type_fns['date'] = lambda x: x.strftime(self.date_format)
ValueError: year=800 is before 1900; the datetime strftime() methods require year >= 1900
Any thoughts on how I can understand what is broken and fix it? I'm trying to come up with a query that can find the tasks with the offending date prior to 1900 but no joy so far.
Hi
I have upgraded Omnifocus to the version 2 from the Mac App store
ofexport still use my old database generated before I upgraded
I guess I need to edit of export.json but I don't know the path I need to add/correct
Thx for your help
I see context mode is not documented, but it shows up in the command line help so I tired using it and got the following error:
$ ofexport -o /Users/tmarkiewicz/Documents/OmniFocus/index.html --tfi --tci none --tse 'from tomorrow' --prune -F -C
--tfi = Task flagged includes flagged
Traceback (most recent call last):
File "/Users/tmarkiewicz/scripts/ofexport/ofexport.py", line 262, in
traverse_list (visitor, items)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 167, in traverse_list
traverse (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 173, in traverse
traverse_context (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 184, in traverse_context
traverse_list (visitor, context.children, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 167, in traverse_list
traverse (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 177, in traverse
traverse_task (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 190, in traverse_task
visitor.begin_any (task)
File "/Users/tmarkiewicz/scripts/ofexport/visitors.py", line 69, in begin_any
item.attribs[SELECTED] = item.parent.attribs[SELECTED]
KeyError: 'visitors.selected'
My use case is showing a flagged view of tasks that aren't in the future. It works great in the regular project mode though (thanks!!).
Hi
What is the command to export the task title only (without the associated note)
thx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.