The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   OmniFocus AppleScript for Statistics Creation (for download) (http://forums.omnigroup.com/showthread.php?t=10257)

digitalimago 2008-10-18 02:29 PM

OmniFocus AppleScript for Statistics Creation (for download) - Update: Version 1.3
 
1 Attachment(s)
[B]Update - Version 1.3.1[/B]


---- 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 [B]OR[/B] 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.

[B]Version 1.1[/B]


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"


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

[B] Version 1.0[/B]

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

Here some infos about the script:
[I]
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
[/I]

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

Lizard 2008-10-20 05:08 PM

[see your original thread for how to open an archive]

lion3000 2008-10-21 09:49 PM

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

gcrump 2008-10-22 02:23 AM

[QUOTE=lion3000;49259]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 ?
[/QUOTE]

While this script sounds promising, I'm having the exact same problem.

Thanks,

George

digitalimago 2008-10-22 11:15 AM

Error
 
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

digitalimago 2008-10-22 03:16 PM

File Created?
 
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

Lizard 2008-10-22 04:40 PM

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
[/CODE]

x seems to be a string such as "9/11/08"

Lizard 2008-10-22 04:41 PM

The .html file is there, but it is empty.

ext555 2008-10-22 05:14 PM

that's the same result I got too

digitalimago 2008-10-22 10:16 PM

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.


All times are GMT -8. The time now is 10:43 PM.

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