Script grammar for "all rows which have named style x"
Michael Terry
formido at mac.com
Fri Jan 7 09:47:58 PST 2005
On Friday, January 07, 2005, at 08:42AM, Fraser Speirs <fraser at speirs.org> wrote:
>Hi all,
>
>I'm trying and failing to express a particular filter reference form in
>AppleScript for OO. What I want to say is "every row of the front
>document which has a named style whose name is fooStyle".
You should be able to do this:
tell app "OmniOutliner Professional" to tell front document
get container of every named style of style of every row where its name is "Some Style Name"
end
The second line should be monolithic.
However, I couldn't test it because I don't totally understand Outliner's style system. How does one create a named style that belongs to a row? I don't mean with AppleScript, but just any way whatever. I wanted to create a named style that belonged to a row, so that I could then test getting it out with AS, but I couldn't figure out how. Were you able to get Outliner's AS interface to claim that a named style was contained in the style of a row. I couldn't.
I've only been able to have a row inherit styles defined in a named style that belongs to the document and I don't see an easy way to figure out if an inherited style has been applied to a row in AppleScript. Is there a way? Is this what you're talking about?
Michael
More information about the OmniOutliner-Users
mailing list