The Omni Group Forums

The Omni Group Forums (
-   OmniFocus 1 for Mac (
-   -   Project view sidebar bug: Selection/Focus/Filter (

RobTrew 2010-08-14 11:18 PM

Project view sidebar bug: Selection/Focus/Filter
Something seems to be amiss with the recording of selected objects/trees in focused project view sidebars.

In other words, there appears to be at least one bug (I am using OF 1.8 v77.61.0.137279) which affects selections in the project view sidebar [I]if it is focused[/I].

If you change a filter setting (manually or through script) when some objects are selected in the GUI, the selections of these objects will be preserved (as long as the objects remain visible) in the context view sidebar and content panel, and in the project view content panel. (Regardless, in each case, of focus settings)

They will also be preserved in the Project view sidebar panel if the focus is not narrowed (focus is {}).

If, however, there is a focus on a particular set of folders/projects, filter-changes will cause complete loss of selection (or mysterious transfer of selection to the library tree) in the project view sidebar, even when the selected folders/projects remain visible.

I suspect that this may be related to another bug, which is that the applescript [B]select[/B] command (which works well when applied to visible folders, projects and tasks and contexts when focus is not narrowed) fails to behave correctly in the project view sidebar, [I]if there is a focus in effect[/I]. When a focus is active, either the select command misfires, mysteriously selecting the library tree in lieu of the specified folder, or it raises an error, even when the specified folder is visible.

[CODE]tell application "OmniFocus"
tell front document
set oWin to front document window

set oSidebar to sidebar of oWin
-- OF 1.8 only
set lstFolders to flattened folders

--set lstFolders to items 2 thru 4 of lstFolders

-- Assumes a database with 3 or more folders
set lstFolders to {item 3} of lstFolders

set focus of oWin to lstFolders

tell oSidebar
repeat with oFolder in lstFolders
-- This will mysteriously select the Library tree
-- instead of the specified folder
select {oFolder} with extending
end repeat
end tell
end tell
end tell[/CODE]

(I have filed a report to help send feedback)


RobTrew 2010-08-16 08:29 PM

Fixed, with impressive speed, in OF 1.8 revision 137328 !

Toadling 2010-08-17 11:19 AM

And gave you credit in the release notes. Nice work, Rob!


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

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