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

 
Minuteur applescript Thread Tools Search this Thread Display Modes
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"
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 earlier thread on scripting Minuteur.

Last edited by RobTrew; 2008-01-12 at 09:23 PM..
 
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. :)
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML and AppleScript seanprice OmniFocus Extras 0 2013-03-14 01:07 PM
Applescript help Shek OmniGraffle General 3 2012-09-04 04:02 AM
Applescript Help ryan_marsh OmniFocus 1 for Mac 3 2008-11-24 08:51 AM
Please help finish a script to launch Minuteur with a task's estimated time smew OmniFocus Extras 19 2008-10-29 01:24 PM
Help with applescript mrpuggles AppleScripting Omni Apps 1 2008-09-16 04:40 PM


All times are GMT -8. The time now is 02:45 AM.


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