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

 
ofexport - export to text, taskpaper, html, opml Thread Tools Search this Thread Display Modes
Also, I'm using IcalSync2 on both by android tablet and my phone. So the difference between the phone and the tablet are as follows:

(a) Different version of Android (4.0 vs. 2.3); and

(b) and different calendar app (on tablet it's the stock calendar app that comes with the cm9 ROM I'm running--although it also seems to work correctly in stock google calendar app; on phone it's an app called calendroid, although I get the same behavior with the HTC stock calendar that shipped with the phone).

Just downloaded a different calendar app to phone and had same problem. So it must have something to do with the way Android 2.3 parses .ics vs. the way Android 4.0 does it.
 
Thank you psidnell for all the work on this!

I have things working on my machine now, and I can do a basic export. I am having a little bit of trouble understanding how some of the options work, so I wanted to ask about how one would do some things.

Basically, I'd like to export (just to plain text), my non-completed tasks that are due in the next two weeks (or some type of time). I assume there's some way to do this with the "due=" setting, but I am not able to figure it out.

For example, this works for to show tasks due in June:
Code:
ofexport  -E -a done=any -I -t "due=June"
I would like to change this so I could run this every morning, and always report on the next two weeks worth of due tasks. What is the best way to do something like this?

thanks!
Dex
 
Quote:
Originally Posted by 23dex View Post
Thank you psidnell for all the work on this!
Thanks!

Quote:
Originally Posted by 23dex View Post
I have things working on my machine now, and I can do a basic export. I am having a little bit of trouble understanding how some of the options work, so I wanted to ask about how one would do some things.
It's not for the feint of heart :-)

Quote:
Originally Posted by 23dex View Post
Basically, I'd like to export (just to plain text), my non-completed tasks that are due in the next two weeks (or some type of time). I assume there's some way to do this with the "due=" setting, but I am not able to figure it out.

...

I would like to change this so I could run this every morning, and always report on the next two weeks worth of due tasks. What is the best way to do something like this?
You probably found the date syntax documentation here but things are made more complex by the need to carefully quote things to get them through the shell unscathed, that's what catches most people out.

It doesn't have anything like multipliers for the date specs e.g. 2 weeks or 14 days (not a bad idea though), the nearest it can get is:

Code:
ofexport -a "due='today to next fri'" -a prune | more
ofexport -a "due='today to 2013-07-08'" -a prune | more
The reason I've used -a instead of -t here as that the latter applies only to tasks, whereas the former applies to anything applicable (projects and tasks). I'm guessing you'd want to see tasks without a due date that are in a project with a due date.
 
First, thanks for making this. I've been looking for something like this for a while.

Second, I'm having an issue getting all this working with Hazel. I have the script to run, which looks like this:

Code:
#!/bin/bash

FILE=/Users/XXXXXX/Dropbox/Public/report.txt

. /Users/XXXXXX/.bashrc
ofexport -p 'name="Home Projects"' --tasks -t done=none -T flat  -o "$FILE"
It works when I activate it myself, but hazel doesn't see to want to make it work.

I'm a bit of a noob with command line and scripting, but I learn fast. Any suggestions?
 
Just to give all the info I can, the script in Hazel is:

Code:
. /Users/athmet/.bashrc
/Users/athmet/Dropbox/public/of_statusboard
Helps to have all the info I guess.
 
Quote:
Originally Posted by Athmet View Post
Just to give all the info I can, the script in Hazel is:

Code:
. /Users/athmet/.bashrc
/Users/athmet/Dropbox/public/of_statusboard
Helps to have all the info I guess.
I had similar issues, does this help?
 
Thanks again, psidnell! I have something working now that does a daily export that emails me with upcoming things. My script is truly lame, but it works ok.

I just got invited into the OF2 beta, after having signed up on the site a few months ago. I seem to remember that ofexport could have issues if the OF schema changes in the sqllite database. Have you gotten a chance to test ofexport with OF 2? I wouldn't be surprised if OF2 introduces some schema changes.
 
Quote:
Originally Posted by 23dex View Post
I just got invited into the OF2 beta, after having signed up on the site a few months ago. I seem to remember that ofexport could have issues if the OF schema changes in the sqllite database. Have you gotten a chance to test ofexport with OF 2? I wouldn't be surprised if OF2 introduces some schema changes.
I think your scripting should serve you well for a while no immediate prospect of changes to the sqlite schema. OF2 will essentially be a new skin around vintage wine. There may be some Applescript changes to the UI level, but the table and field structure haven't changed.

In addition, the first draft of the beta (the one that can be downloaded) was a very preliminary and experimental sketch, not a full implementation even of existing OF1 functionality you probably won't find yourself using it regularly, and even the visual level of it now being revised, to make sure that it promotes the user content more than itself, and majors more on good information design than on decorative upholstery and visual allusion.
 
Quote:
Originally Posted by 23dex View Post
I just got invited into the OF2 beta, after having signed up on the site a few months ago. I seem to remember that ofexport could have issues if the OF schema changes in the sqllite database. Have you gotten a chance to test ofexport with OF 2? I wouldn't be surprised if OF2 introduces some schema changes.
I never tried it out myself, but other people did and gave me a patch for the DB location. Nobody reported any problems, but that's all I know at the moment.

As Rob said, currently OF2 is very preliminary - I was going to wait until it's much nearer release and stabilised before dealing with any issues.
 
Thanks Rob and Paul for the info. If OF2 is still changing a fair amount maybe I'll go ahead and wait for a bit to test it out.

Thanks! And thanks to both of you for the tools you've created for use with OF!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Export OO to OPML or Text adgirard OmniOutliner 3 for Mac 0 2012-10-04 11:53 AM
.html extension on dynamic html export pairustwo OmniOutliner 3 for Mac 3 2011-09-10 01:53 PM
Bug - Export as TXT (TaskPaper) Vlad Ghitulescu OmniFocus 1 for Mac 2 2011-04-29 03:36 AM
Pasting Taskpaper-format text into OmniOutliner RobTrew OmniOutliner 3 for Mac 1 2011-01-11 05:00 AM
Export Properties:Notes as HTML Roll Over Text? jeffreykennedy OmniGraffle General 6 2009-10-26 07:40 AM


All times are GMT -8. The time now is 03:19 AM.


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