The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Directly reading OF files (http://forums.omnigroup.com/showthread.php?t=17905)

gopi 2010-09-12 04:11 PM

Directly reading OF files
 
I'd like to extract the current list of flagged tasks from OmniFocus. I will feed this into an app I'm working on, which will be running on a Linux box.

I was looking at the .zip file that is stored via WebDAV, and it looks like what gets stored is a file with the data, and a series of update files. So if I want to extract this, I need to go through all the files and perform the updates myself.

Is this right? Is there an easier way? Does any of the Omni framework code do this?

For right now, I will probably hack up a prototype using AppleScript to extract the data whenever my laptop is on, but that's sub-optimal.

RobTrew 2010-09-12 10:23 PM

[QUOTE=gopi;85492]Is there an easier way?[/QUOTE]

Here is a post sketching a procedure for consolidating to a single zip, from which you could read the xml more simply:

[URL="http://forums.omnigroup.com/showpost.php?p=82281&postcount=13"]http://forums.omnigroup.com/showpost.php?p=82281&postcount=13[/URL]

(I have to say that in the end I have retreated from processing the zips directly a couple of times, and settled for the simplicity of getting property value lists from Applescript):

[I]tell front document[/I][INDENT] set refFlagged to a reference to (flattened tasks where (flagged is true) and (completed is false))
set {lstName, lstNote, lstDue, lstDurn} to {name, note, due date, estimated minutes} of refFlagged[/INDENT][I]end tell[/I]

Getting something like cron to run an applescript from the shell with osascript, perhaps ?

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

gopi 2010-09-14 02:03 PM

Rob,

Thanks for the suggestions. That is what I will end up doing for now. I don't have an OS X system running as a server, so I'll need to fix that if I want to make this work when my laptop is asleep.


All times are GMT -8. The time now is 08:57 PM.

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