Scripting a search in OO3
Michael Terry
formido at mac.com
Fri Jan 7 10:53:20 PST 2005
On Friday, January 07, 2005, at 10:19AM, Fraser Speirs <fraser at speirs.org> wrote:
>On 7 Jan 2005, at 18:03, Michael Terry wrote:
>
>> Depending on what features you want, the script can be made more
>> sophisticated, for example highlighting all found rows with a
>> particular style. You'd want a partner script to clear the highlights
>> too. In Outliner 2, it would have been possible to select the found
>> rows, but not anymore.
>
>You can still script the selection:
>
>set theRows to every row of front document whose topic is "foo"
>select theRows
Awesome. I missed that. Thanks very much. I believe the select command is new in Outliner 3, and a change from the way you set the selection in Outliner 2, where the selection was a property of the document class.
>...seems to work for me. In any case, I've found that using
>applescript filter references is much more flexible than the search
>field alone.
Yes, absolutely.
>Actually, instead of selecting the found rows I'm faking a hoist by
>copying them into a temporary document. Works quite nicely for me.
Yep, that's one of the more sophisticated improvements I was thinking of.
Michael
More information about the OmniOutliner-Users
mailing list