Scripting a search in OO3
Fraser Speirs
fraser at speirs.org
Fri Jan 7 10:18:43 PST 2005
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
...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.
Actually, instead of selecting the found rows I'm faking a hoist by
copying them into a temporary document. Works quite nicely for me.
Cheers,
Fraser
--
Technical Coordinator - ScotGrid
a: Room 481, Kelvin Building, University of Glasgow
w: http://ppewww.ph.gla.ac.uk/~fspeirs/ t: 0141 330 6439
More information about the OmniOutliner-Users
mailing list