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 Today's Posts

 
Very basic time tracking script Thread Tools Search this Thread Display Modes
Hello

I created a script that does time tracking in OmniFocus' notes. It worked for me for two days, so there might be a lot of room for improvement. :rolleyes:

Here is screenshot: http://idisk.mac.com/ganwell-Public/TimeTracking.png
And the script: http://idisk.mac.com/ganwell-Public/TimeTracking.zip

Quote:
This is a very basic time tracking script for OmniFocus

THIS SCRIPT CHANGES NOTES IN OMNIFOCUS PLEASE BACKUP YOUR DATEBASE BEFORE TESTING IT.

The script searches the notes of every project and every task in OmniFocus for lines containing "#spent: [time]h" or "#spent: [time]m". The time found is summed up and saved in the notes.

All leaves of the task-tree are summed up and the totals are saved in all nodes of the branches.

Please note:

* Only one "#spent:" signal is allowed per paragraph
* The total is appended to the note or replaced if a total exists
* Paragraphes containing "#>total:" will be replaced by the script
--> * Don't add text to those paragraphs
* The script reads every line in every note in your database, it may take some while
* You are free to add any text to the paragraphs containing "#spent:"
* Install the script at ~/Library/Scripts/Applications/OmniFocus/
* Use Customize Toolbar to add the script
There is a second script that creates time tracking entries and copies them to the clipboard. Insert these with "Paste and Match Style" into a note.

Best,
Ganwell
 
Well, I updated the script:

- It only updates notes if the total has changed.

the previous version caused the zip count of syncs to get out of hand.

The links stays the same.

Best,
Ganwell

Last edited by ganwell; 2009-08-22 at 12:09 PM..
 
Great script, Ganwell. Thanks a lot!
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracking Time, How to let staff report their time and get that data into OmniPlan? girgen OmniPlan Extras 7 2012-07-06 11:54 AM
Basic new item script Chris Ryan OmniFocus Extras 9 2012-06-20 11:32 PM
script for tracking tasks that are getting lost jhamlinn OmniFocus 1 for Mac 0 2011-03-25 05:17 AM
Time Tracking DennisHouston OmniFocus 1 for Mac 2 2009-12-01 02:22 PM
Time Tracking in OF zero OmniFocus 1 for Mac 2 2008-06-24 05:47 AM


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


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