The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniOutliner 3 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=9)
-   -   Filtering Omnioutliner rows by values of columns etc. (http://forums.omnigroup.com/showthread.php?t=16392)

Wobbly 2010-12-16 03:31 AM

Robtrew, just saw you did my last wished modification. Thanx very much, this saves my life not having to manually copy the content of 150 windows 50 times!

RobTrew 2011-09-08 12:31 AM

The code in post 1 has been updated to include whpalmer4's excellent edits, which fix an error thrown when filtering rows by date.

Many thanks for catching and fixing that !

steve 2011-10-03 04:10 PM

This looks promising. I don't know if anyone else is getting this error on the code in the first post.

I am getting a syntax error that reads:
"A identifier can’t go after this identifier."

topic column is highlighted in this bit of code:

"set width of [COLOR="Red"]topic column[/COLOR] of docFiltered to width of topic column of oDoc"

RobTrew 2011-10-03 09:04 PM

Not seeing that here under OS X 10.6
It might be worth copying the code afresh (ensuring that nothing is getting missed at start or end) and trying again.

steve 2011-10-04 10:03 AM

Rob,

This is a brilliant script. I got it to work on 10.6.8, but I got the error message on Lion.

Did anyone out there get it to work on Lion?

Steve

steve 2011-10-04 07:27 PM

Phew. It works on Lion. I must have made a mistake copying the code the first few times around! Great script.

carl123 2012-11-25 12:04 PM

still don't understand how to select parents
 
First, Rob and other contributors: Thank you very much for the huge amount of work it must be to generate these scripts. They add great functionality to OO. I'm very grateful to have them.

Sorry to be slow here, but I don't understand how to use this script (or your other selector script) so that when I give a criteria it will also select the parents.

I think my use case is fairly common: From a large file, I want to select all the entries that contain, say "apple," at any level in a particular column.

It seems like others understand how to use this script to do this, but I can't quite get it. Thanks very much for any thoughts on this.

RobTrew 2012-11-25 01:24 PM

[QUOTE=carl123;117793]I don't understand how to use this script (or your other selector script) so that when I give a criteria it will also select the parents.[/QUOTE]

Not sure what filtering plans (if any) there are for OmniOutliner 4, but in OO3 there is no support for query operations on branches (subtrees) - the applescript [I]where[/I] queries can only return matching rows, essentially as flattened list of records.

Might be worth asking, through [B]Help > Send Feedback[/B] whether full path queries, with axes like "ancestors", "descendants" etc are likely to be introduced in OO4.

In the meanwhile, for this kind of thing I am personally using [URL="http://www.foldingtext.com"]FoldingText[/URL], which stores values in key/value 'tags' and 'properties' rather than columns, but does have a full Xpath-based query language, which can (through a scripting interface) query the 'Axes' of tree structures (branches, lineages, sibling ranges etc) rather than just flattened lists of rows.

For particular purposes one could construct recursive applescripts which did something analogous in OO3, but this script does not do that, and making such scripts relatively general would take some work.

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

carl123 2012-11-25 01:36 PM

Thanks for the quick reply Rob
 
OK, I thought that earlier post was saying that he had used the script in this thread to solve this problem. It's at least helpful to know that it can't really be done at present so that I can stop trying to figure out a way to do it w/ the script.

thanks again.

I'll make a request to the omni folks.

RobTrew 2012-11-26 12:08 AM

[QUOTE=RobTrew;117796]For particular purposes one could construct recursive applescripts which did something analogous in OO3, but this script does not do that, and making such scripts relatively general would take some work[/QUOTE]

Probably fair to add that recursive search through general tree axes (matching and returning branches, lineages, sibling sets etc) would tend to run quite slowly in OO3 Applescript - the script in this thread is relatively fast because it restricts itself to the built-in [I]where[/I] syntax querying of a flattened list of rows.


All times are GMT -8. The time now is 12:29 AM.

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