I like the new additions to this script!
Quote:
Originally Posted by whpalmer4
If you look at the scripts posted here in the OmniFocus Extras forum, most of them are easily seen to be one of a small number of classes, with only a few huge beasts like RobTrew's Where in OF that aren't just different uses of the same general structure.
|
Thanks for the encouragement here, it helped me push through and start to make some more sense out of these scripts!
I don't know if the following script is squerly or not but it's a way to use QuicKeys, Quick Silver, LaunchBar or whatever to run these quickly without a dialog or mouse click. Obviously you would have to create individual scripts for each action.
Hopefully I can figure out a way to make it so it duplicates the action, adds the prepended text and then marks as complete for the day. This way it will at least show some history that I got an action started and is in progress.
Code:
--Prepend text to select actions
--http://forums.omnigroup.com/showthread.php?p=101754#post101754
property prependText : "[In Progress] "
tell application "OmniFocus"
tell front document
tell document window 1
set oTrees to selected trees of content
set IngTrees to count of oTrees
if (IngTrees > 0) then
set strPrepend to prependText
repeat with iTree from 1 to IngTrees
set oTask to value of (item iTree of oTrees)
set name of oTask to strPrepend & name of oTask
end repeat
else
display alert "No content selected!"
end if
end tell
end tell
end tell