Script grammar for "all rows which have named style x"
Curtis Clifton
curt.clifton at mac.com
Fri Jan 7 10:32:45 PST 2005
Fraser,
On Jan 7, 2005, at 10:41 AM, Fraser Speirs wrote:
> 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".
>
Try:
tell front document of application "OmniOutliner Professional"
set discussedStyle to id of named style "Discussed"
set discussedRows to every row whose (discussedStyle is in (id of
named styles of style of it))
return count of discussedRows
end tell
This assumes, of course that you have a style named "Discussed".
Curt
----------------------------------
Curtis Clifton, PhD Candidate
Dept. of Computer Science, Iowa State University
http://www.cs.iastate.edu/~cclifton
More information about the OmniOutliner-Users
mailing list