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

 
OmniFocus AppleScript for Statistics Creation (for download) Thread Tools Search this Thread Display Modes
Update - Version 1.3.1


---- Version 1.3.1 ----

Fixed bug with tasks > 180 days

---- Version 1.3 ----

Added the "Task Duration Statistics" section.


---- Version 1.2 ----

Added Processing of the archive.
The scripts processes the arcive OR the current database, depending on a parameter.
To process the archive:
go down to the "PARAMETERS SECTION" and change "process_archive" to 1.
To process the current database change it back to 0.

Version 1.1


I have fixed the Integer issue with mm/dd/yyyy date format and
issue with the decimal formating

I have also added a parameter to the script:
You can now set the number of completed weeks the statistic should show. (defult is 4)
Go down to the "PARAMETERS SECTION" and change the value of "number_of_full_weeks"


---------------

Version 1.0

This AppleScript creates an html page with some statistics about the data in your omnifocus database.

Here some infos about the script:

The grahics displayed are created using the Google Visualization API.
You need an internet connection to use it, elsewere you won't be able to see the statistics.

File:
- the statistic file is created inside the "sites" home folder of the user
- the statistic file has in his name the current week number, so each week a new file is created
- the style.css is copied to the "sites" home folder of the user account

Statistics:
- global statistics about folders, projects, actions
- daily statistics:
- timeline: the last 4 weeks + days of the current week
- created and completed tasks
- weekly statistics:
- timeline: the last 4 weeks
- average created and completed tasks per day


The script will take some minutes to complete, the statistic will be opened automatically in safari.

It's my first applescript, so perhaps some things are not coded in the best way ...but it works...

Hope this script will be helpfull to some of you! :D

Regards
Deborah
Attached Files
File Type: zip omnifocus_statistics_v1_3_1.zip (73.7 KB, 1590 views)

Last edited by digitalimago; 2009-01-20 at 09:06 AM.. Reason: New Version 1.3.1
 
[see your original thread for how to open an archive]
 
hi deborah,
Very nice script it sounds promising, unfortunatly, i've got a prob with the it:

when it launches it starts and then at some point it stops and tell me that the current date cannot be turned into integer...
i've tried to find out where the code stops but i did not manage could you help me ?

thanks in advance

Lionel
 
Quote:
Originally Posted by lion3000 View Post
hi deborah,
when it launches it starts and then at some point it stops and tell me that the current date cannot be turned into integer...
i've tried to find out where the code stops but i did not manage could you help me ?
While this script sounds promising, I'm having the exact same problem.

Thanks,

George
 
Hi Lionel, Hi George,

I have tree collegues using the script and they do hot have any problems with it.
I will try to find out what the issue is.
Perhaps it has something to do with the date format itself ... I'm in europe ... so perhaps it's a US formatting issue.

Regards
Deborah

Last edited by digitalimago; 2008-10-22 at 11:21 PM..
 
hi,

can you please check if the main html file is created?
Look in your home folder under sites.
There it should be a style.css file and a file called omnifocus_stats_week_43.html
is it there?

Thanks
 
I have the same error. The problematic line is around 498:

Code:
-- filter the items without date
if (x as integer is not -1) then
x seems to be a string such as "9/11/08"
 
The .html file is there, but it is empty.
 
that's the same result I got too
 
Thanks,

Sorry for the bug!
It's really about the US date format.
I will fixt it, I think I will need to change part of the code.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script for a quick listing of OmniFocus statistics RobTrew OmniFocus Extras 51 2014-02-17 02:58 AM
OmniFocus Statistics skylarkelly OmniFocus Extras 4 2012-02-29 07:44 AM
Applescript creation of tasks with existing dates nikolaj OmniPlan Extras 1 2010-09-02 05:44 PM
AppleScript automating creation of Finder & Mail folders omnibob OmniFocus Extras 4 2009-07-20 01:25 AM
OmniFocus crash statistics Ken Case OmniFocus 1 for Mac 0 2007-07-25 04:05 PM


All times are GMT -8. The time now is 03:44 PM.


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