The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   changing project status with a keyboard shortcut (http://forums.omnigroup.com/showthread.php?t=14129)

kingsinger 2009-10-11 01:43 PM

changing project status with a keyboard shortcut
 
Are there any keyboard shortcuts to change the status of a project from say "Active" to "On Hold"?

jasong 2009-10-12 11:13 PM

Nope. I asked for them two years ago. OG #234058.

I tried using the system's Keyboard Shortcuts to assign a keystroke to the menu, but that failed too, because OF has multiple menus with the same name. So assigning, say "command-control-c" to "Completed" changes the Project Filter to show only "Completed" items rather than choosing Edit > Status > Completed.

(I filed this as a bug too, but can't find the number.)

RobTrew 2009-10-13 05:28 AM

You can always use something like Quicksilver to assign keystrokes to applescripts of the following general pattern:

[CODE]on run
tell application "OmniFocus"
tell front window
set lstTrees to selected trees of sidebar
if (count of lstTrees) < 1 then return
end tell

repeat with oTree in lstTrees
set oValue to value of oTree
if class of oValue is project then
set status of oValue to on hold
-- OR
-- set status of oValue to done
-- set status of oValue to dropped
-- set status of oValue to active
end if
end repeat
end tell
end run
[/CODE]

kingsinger 2009-10-13 11:20 PM

Thanks for the thoughts, I'm afraid your solution is a little beyond me RobTrew. I know quicksilver is cool, but it's something I haven't delved that deeply into. Too bad about now key commands for this .

mrubenson 2011-06-01 04:21 AM

That would really be useful...
 
Still nothing?

RobTrew 2011-06-01 06:01 AM

You can easily assign a keystroke to a script using [URL="http://www.red-sweater.com/fastscripts/"]FastScripts[/URL], which is free for up to 10 keyboard shortcuts.

This script, for example, toggles the currently selected projects back and forth between [I]active[/I] and [I]on hold[/I].

[CODE]tell application id "OFOC"
tell (selected trees where class of value is project) of sidebar of front window
if (count) > 0 then
if (status of value of first item) ≠ on hold then
set status of value to on hold
else
set status of value to active
end if
end if
end tell
end tell[/CODE]

[COLOR="White"]--[/COLOR]

mrubenson 2011-06-03 09:44 PM

Thanks Rob!

Still, I think something like this should be built-in in OF, as it is a very useful keyboard shortcut.


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

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