The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   ofexport - export to text, taskpaper, html, opml (http://forums.omnigroup.com/showthread.php?t=29081)

RobTrew 2013-05-10 03:52 AM

1 Attachment(s)
[QUOTE=psidnell;123878]if a project/context is paused, or what the next action is)[/QUOTE]

FWIW the [I]ProjectInfo[/I] table contains a [I]status[/I] field (string: active | inactive | done | dropped), and an id in a [I]nextTask[/I] field.

[COLOR="White"]--[/COLOR]

psidnell 2013-05-10 04:27 AM

[QUOTE=RobTrew;123908]FWIW the [I]ProjectInfo[/I] table contains a [I]status[/I] field (string: active | inactive | done | dropped), and an id in a [I]nextTask[/I] field.[/QUOTE]

Thanks. I might have a go at that this weekend.

Update: 'tis done. For simplicity I've mapped context paused state onto active/inactive too.

[CODE]ofexport -p 'status="active"' -p 'text="Home"' -o ~/Desktop/x.taskpaper --open[/CODE]

kingsinger 2013-05-10 04:35 PM

[QUOTE=psidnell;123902]I've added a [URL="https://github.com/psidnell/ofexport/blob/master/DOCUMENTATION.md#pre-requisites"]pre-requisites[/URL] section indicating that it won't work with the version of python that ships with Snow Leopard.

It can be upgraded: [url]http://www.python.org/download/releases/2.7.4/[/url] but I don't know what issues are associated with doing that.[/QUOTE]

Yes, I'm trying to understand what, if any issues there might be in doing that. Seems like you can do a straight install or do it through MacPorts or Homebrew. Apparently, different versions are designed to run next to each other. But I haven't learned more than that. Trying to figure out the simplest and safest way to get 2.7.4 on my system.

JL

psidnell 2013-05-10 11:26 PM

I'd forgotten about MacPorts - probably because it just works. MacPorts is great - I use it myself and it maintains a separate install location for everything it fetches so (as you say) it won't blitz your system version and you should be able to uninstall and leave everything as it was.

kingsinger 2013-05-12 09:53 AM

Got Python 2.7.4 installed on my system with the .org installer. Seems to be working. Is there any way to include a query that uses the availability filter in OF (e.g., to only return tasks that are the next action of a project)?

psidnell 2013-05-12 10:55 AM

[QUOTE=kingsinger;123959]Got Python 2.7.4 installed on my system with the .org installer. Seems to be working. Is there any way to include a query that uses the availability filter in OF (e.g., to only return tasks that are the next action of a project)?[/QUOTE]

Not yet, just got status queries working, so I might look at this next.

kingsinger 2013-05-12 05:20 PM

Looking forward to you figuring that out.

kingsinger 2013-05-12 05:23 PM

In case you haven't seen it, this thread might have some info about getting the perspective info out of the cache: [url]http://forums.omnigroup.com/showthread.php?t=29538[/url]

psidnell 2013-05-12 11:38 PM

[QUOTE=kingsinger;123969]Looking forward to you figuring that out.[/QUOTE]

With the pointer from Rob Trew (thanks!) that turned out to be pretty easy.

In the latest version you can do this now:

[CODE]ofexport -f text=Work -p status=active -t next --open -o ~/Desktop/OF.taskpaper[/CODE]

And it produces something plausible. This is hot off the presses so I don't if there are any lurking weirdnesses yet.

[QUOTE=kingsinger;123969]In case you haven't seen it, this thread might have some info about getting the perspective info out of the cache: [url]http://forums.omnigroup.com/showthread.php?t=29538[/url][/QUOTE]

Thanks, interesting. As an aside I've also had trouble with blobs/unicode when decoding the notes. This might work better than my current soution which is quite slow...

kingsinger 2013-05-13 10:06 AM

How do I upgrade to a newer version? I know very little about the command line.


All times are GMT -8. The time now is 02:01 AM.

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