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 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Project view sidebar bug: Selection/Focus/Filter Thread Tools Search this Thread Display Modes
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 if it is focused.

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 select 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, if there is a focus in effect. 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
		
		-- IF WE SET FOCUS TO {}
		-- SELECT WILL WORK AS ADVERTISED
		-- BUT IT MALFUNCTIONS IF A FOCUS IS IN EFFECT
		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
(I have filed a report to help send feedback)

--

Last edited by RobTrew; 2010-08-15 at 12:24 AM..
 
Fixed, with impressive speed, in OF 1.8 revision 137328 !
 
And gave you credit in the release notes. Nice work, Rob!

-Dennis
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is there no 'Due or Flagged' filter in Project View Mode? askielboe OmniFocus 1 for Mac 1 2012-08-06 01:37 PM
Order by or Filter Contexts in Project View reallyseth OmniFocus 1 for Mac 1 2009-09-22 08:49 AM
Script: Focus on Current Selection jeremydb OmniFocus Extras 3 2009-06-29 10:04 AM
Save and restore viewbar settings based on sidebar selection ptone OmniFocus Extras 0 2007-12-20 08:52 PM
Sidebar selection feels slow Toadling OmniFocus 1 for Mac 28 2007-12-07 10:48 AM


All times are GMT -8. The time now is 05:58 PM.


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