of course, it may be more useful to have a script which toggles the selected rows back and forth between note expanded and note closed.
e.g.
Code:
tell application "OmniOutliner Professional"
activate
repeat with oRow in every selected row of front document
tell oRow
set note expanded to not (note expanded)
end tell
end repeat
end tell