Quote:
Originally Posted by RobTrew
I tend to use a script for re-focusing the sidebar - on my system it seems to run marginally faster than retrieving a stored perspective.
for example, to list only flagged projects in the sidebar:
Code:
property pTitle : "Focus on flagged projects"
tell application "OmniFocus"
set oDoc to default document
set lstProjects to my ProjectList(oDoc)
if length of lstProjects > 0 then
set focus of front document window of oDoc to lstProjects
else
set focus of front document window of oDoc to {}
display dialog "No flagged projects found" with title pTitle
end if
end tell
on ProjectList(oParent)
using terms from application "OmniFocus"
tell oParent
-- ADJUST THE WHERE QUERIES TO MATCH
--THE TYPE OF PROJECTS YOU WANT TO LIST
set lstProjects to projects where (flagged is true) and ((status is active) or (status is on hold))
set lstFolders to folders where hidden is false
end tell
repeat with oFolder in lstFolders
set lstProjects to lstProjects & my ProjectList(oFolder)
end repeat
return lstProjects
end using terms from
end ProjectList
|
Hi Rob,
Thanks very much for posting the "Focus on flagged projects" Script. I had been trying to fathom a workaround for this in OmniFocus until I found the script.
I was wondering; Is there a way of getting the script to also enable the prioritization of flagged projects in the sidebar? (without effecting the position of those projects within their Projects Folders)
After applying the Script, I tried prioritizing the focused Projects in the Sidebar and they just jumped to the top of the Sidebar (and out of their Project folders - in Library view).
This function would be a great help!