psidnell / ofexport2 Goto Github PK
View Code? Open in Web Editor NEWExport your OmniFocus data to multiple file formats.
License: Apache License 2.0
Export your OmniFocus data to multiple file formats.
License: Apache License 2.0
Running mvn install
twice in a row deletes the contents of the ofexport2/config directory.
The problem is the logic in pom.xm
l that links the build directory's config to the root directory's config:
<target>
<delete dir="${project.build.directory}/ofexport/config" />
<symlink link="${project.build.directory}/ofexport/config" resource="${basedir}/config" />
</target>
When you first run install, this logic deletes the ofexport/config
directory created by the appassembler-maven-plugin's copyConfigurationDirectory
directive and then replaces it with a symlink. One the second invocation, the path ofexport/config
is already a symlink, so ant deletes the contents of the directory.
Workaround: run a clean
between invocations of install
.
Environment : OSX
when I follow the instructions of2 command does not run.
When in the bin directory and I use
./of2
command executes correctly
Hi!
I was wondering where you guys found documentation on the .ofocus
file format?
Thanks!
Hi Paul. Thanks for creating this awesome setup for exporting OF data! I've been looking for a way to export my OF data and import it into TaskPaper. This looks like the perfect solution! I think I have everything setup correctly but I'm getting an error when I type OF2 into the terminal. Here's the error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/psidnell/omnifocus/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I updated my Java to 1.8 from 1.6 although it's still showing as 1.6 when I type java -version in the terminal. I verified the 1.8 update from system preferences. Any thoughts as to what the issue is? Thanks again for creating this and for your assistance! Have a great day!
JP Roberts
The DB location for OmniFocus 2 purchased from Mac App Store is:
${HOME}/Library/Containers/com.omnigroup.OmniFocus2.MacAppStore/Data/Library/Caches/com.omnigroup.OmniFocus2.MacAppStore/OmniFocusDatabase2
I'm in the PST timezone. If I run the tests normally, I get:
Tests run: 125, Failures: 7, Errors: 2, Skipped: 0
But if I run with
TZ=GMT mvn clean package
I get:
Tests run: 125, Failures: 1, Errors: 2, Skipped: 0
A number of your tests make assumptions that they are being run in the GMT time zone. I suggest explictly setting the timezone in your tests or changing your documentation.
I'm only tracking if they're sequential or not.
Run:
of2 -c -ti available
The result is cluttered with paused project tasks.
I'm trying to filter my completed tasks of today using of2 -ti 'completion.is("today")'
. This results in no output, even if there are tasks marked completed today. The same for of2 -ti 'completion.is("yesterday")'
.
If I fill in a specific date like of2 -ti 'completion.is("2015-03-19")'
it shows the tasks with a completion date of March 18...
If I use of2 -ti 'completion.between("Monday","today")'
, it will only output completed tasks from Monday to yesterday (including).
Hi,
I want to exclude a certain folder in my export, but it gives an error. See below.
Exception in thread "main" org.psidnell.omnifocus.visitor.TraversalException: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.psidnell.omnifocus.visitor.Traverser.traverse(Traverser.java:45)
at org.psidnell.omnifocus.OFExport.process(OFExport.java:106)
at org.psidnell.omnifocus.Main.run(Main.java:105)
at org.psidnell.omnifocus.Main.main(Main.java:164)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.psidnell.omnifocus.expr.ExprMarkVisitor.evaluate(ExprMarkVisitor.java:45)
at org.psidnell.omnifocus.expr.ExprVisitor.enter(ExprVisitor.java:67)
at org.psidnell.omnifocus.visitor.Traverser.doTraverseFolder(Traverser.java:82)
at org.psidnell.omnifocus.visitor.Traverser.doTraverseFolder(Traverser.java:93)
at org.psidnell.omnifocus.visitor.Traverser.doTraverse(Traverser.java:54)
at org.psidnell.omnifocus.visitor.Traverser.traverse(Traverser.java:43)
... 3 more
The command I use is this:
of2 -fx 'name="Recurring"'
The original command I was using is this:
of2 -ti '!completed && due.soon' -px onHold -fx 'name="Recurring"' -f html-plain
html-plain
is a special template that doesn't include the task notes. I cooked that up because the documentation mentioned -m 'type=="Task" && note=null'
method was not working either.
I hope this is enough information to find the issue.
Seems to be because the filter is run on entering the node during traversal.
So pruning doesn't happen because a child that will be pruned is present.
Pruning should be done when we're winding out of the recursion.
Hi,
Not sure if this is a known issue and my experience with Java is limited so I'm not sure how to fix this. In the latest master release I'm seeing the following error when I try and run the app.
Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.psidnell.omnifocus.sqlite.SQLiteDataSource] for bean with name 'sqLiteDS' defined in class path resource [config.xml]; nested exception is java.lang.ClassNotFoundException: org.psidnell.omnifocus.sqlite.SQLiteDataSource
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:623)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:592)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1394)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:957)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.psidnell.omnifocus.ApplicationContextFactory.getContext(ApplicationContextFactory.java:36)
at org.psidnell.omnifocus.Main.main(Main.java:138)
Caused by: java.lang.ClassNotFoundException: org.psidnell.omnifocus.sqlite.SQLiteDataSource
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:249)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1346)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1317)
... 11 more
Is this just me missing a dependency somewhere? The release version works, but I was trying this one out because of a commit I saw that mentioned possibly working better with ASCII?
Thanks!
Hi,
I installed version 1.0.19 (2015-01-07) and get the following error when running of2
with anything other than the -h
option.
$ ./of2 -v
Loading...
Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Double
at org.psidnell.omnifocus.sqlite.SQLiteClassDescriptor.getValue(SQLiteClassDescriptor.java:135)
at org.psidnell.omnifocus.sqlite.SQLiteClassDescriptor.load(SQLiteClassDescriptor.java:93)
at org.psidnell.omnifocus.sqlite.SQLiteDAO.load(SQLiteDAO.java:125)
at org.psidnell.omnifocus.sqlite.SQLiteDAO.load(SQLiteDAO.java:102)
at org.psidnell.omnifocus.Main.loadData(Main.java:59)
at org.psidnell.omnifocus.Main.main(Main.java:160)
I have the following Java version:
$ java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
And Omnifocus is version 2.1.1 (v92.6 r228096), Pro, bought from The OmniGroup.
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.