Minuteur applescript
Here's a code-snippet for someone who asked about snagging durations from a task and throwing it into Minuteur. It's crude, but works ok for me. If you don't have growl, comment out that line...
[CODE]tell application "OmniFocus" tell front document tell document window 1 set theSelectedItems to selected trees of content end tell if ((count of theSelectedItems) = 1) then set selectedItem to value of item 1 of theSelectedItems set selectedDuration to estimated minutes of selectedItem end if end tell end tell tell application "Minuteur" StartCountdown "00" & selectedDuration & "00" end tell do shell script "/usr/local/bin/growlnotify OmniFocus Task focus -m 'Working on selected task for " & selectedDuration & " minutes' -p 1" [/CODE] Hope this helps with some ideas... -Allen |
The growl is a nice touch.
For code that allows for slightly longer durations, (and for summing up the durations of a set of selected tasks) you could also look at the [URL="http://forums.omnigroup.com/showthread.php?t=4748&highlight=minuteur"]earlier thread[/URL] on scripting Minuteur. |
Hey Rob,
Thanks for the reply! I'm new to the forum, so it appears I've missed a ton of great info! :) Thanks for the pointer!! -Allen ps- growl is fantastic for most simple dialogs- love to use it where possible. :) |
All times are GMT -8. The time now is 02:50 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.