I’m having trouble figuring out how to write AppleScript to clear the style of a row in an OO 5 document. I thought something like the following would do it,
tell application "OmniOutliner" tell front document repeat with theRow in selected rows set rowStyles to get style of theRow repeat with theStyle in rowStyles remove style theStyle of theRow end repeat end repeat end tell end tell
but this produces an error,
error "OmniOutliner got an error: Can’t make style (item 1 of style of child 4 of child 15 of document id \"cmtakl8ic3V\") of item 1 of every selected row of document 1 into type list of specifier or specifier." number -1700 from style (item 1 of style of child 4 of child 15 of document id "cmtakl8ic3V") of item 1 of every selected row of document 1
and I’m kind of stuck there.
I bet someone among you has already done this in AppleScript – what is the correct incantation?