Now if only I could run this in Python on the iPad :-)
Any particular version of Python required?
Any particular version of Python required?
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!
|
|
FAQ | Members List | Calendar | Today's Posts | Search |
Python OmniFocus library for generating reports | Thread Tools | Search this Thread | Display Modes |
|
Member
2013-02-09, 12:48 PM
Now if only I could run this in Python on the iPad :-)
Any particular version of Python required?
Post 1
|
Member
2013-02-09, 02:03 PM
Give it a try, tell me how it goes :-)
I'm using 2.7.3 I think (on my ipad right now), but I'm not doing anything clever so the built in version should do. One odd problem I have at the moment seems to relate to wide character support, but only if launched from AppleScript, it's fine when started from the console - haven't got to the bottom of that one yet...
Post 2
|
Guest
2013-02-09, 02:13 PM
I like the elegance of the hierarchy handling – thank you !
Post 3
|
Member
2013-02-09, 02:31 PM
Thankyou! It's actually my first Python program, it probably smells of Java :-)
Post 4
|
Member
2013-02-09, 05:14 PM
I'm a Python novice, maybe I'm doing something wrong, but I get nothing when I try any of the reports. I did fix the obvious problem with my home directory being something other than /Users/psidnell, but if I try to run linkgen.py I get
Code:
bash-3.2$ python linkgen.py File "linkgen.py", line 6 def __init__ (self, out, types = {'Folder', 'Project', 'Task'}, indent=4): ^ SyntaxError: invalid syntax bash-3.2$ Code:
# Weekly Progress Report ## Bill Palmer Sat Feb 09 2013 ---
Post 5
|
Member
2013-02-10, 01:29 AM
Hmm - that first error in linkgen.py is odd.
I'm using Python V2.7.2 and OSX 10.8.2 the same as you. The line itself is valid - have you added any code above it? The syntax looks the same as mine. It's a shame you're having issues with linkgen.py since that's the report I'd recommend starting with since it just dumps everything to html and then opens the browser on it. As for the second issue with weekly report.py, it looks like the report is running but finding nothing to produce. This is most likely because of other config personal to my work flow: 1. weeklyreport.py looks throught all the folders for one called "Work" and only descends into that. Getting rid of that test should help. 2. donereport.py (which weeklyreport.py imports) looks for completed tasks in a context whose name starts with "Log" (I move only some completed tasks into a Log context at the end of the day so I can control what appears in it). Let me know if this helps.
Post 6
|
Member
2013-03-02, 07:37 AM
Just added an OPML printer, this is the output viewed in OmniOutliner:
Last edited by psidnell; 2013-03-02 at 07:53 AM..
Post 7
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OmniFocus 2 reports? | danlandrum | OmniFocus 1 for Mac | 1 | 2013-02-01 09:37 PM |
GTD: OmniFocus as Reference Library | vvlevchenko | Applying OmniFocus | 14 | 2012-04-24 06:12 PM |
A blind patch in OmniFocus Applescript library | RobTrew | OmniFocus Extras | 0 | 2010-06-09 01:09 PM |
OmniFocus -> PagePacker Script [Python] | erik_westra | OmniFocus Extras | 15 | 2008-04-10 07:57 PM |