Member
2013-05-17, 09:46 PM
I noticed that, and I think I probably decide now, but in fact, you should be able to abandon the style applied manually by converting a text object in a string and returns regularly.
tell application id "OOut"
tell front document
-- WHICH OF THE COLUMNS ARE RICH TEXT ?
set lstColID to id of columns where its type = rich text
-- EXCLUDE THE NOTE ?
set strNoteID to id of note column
-- WITH SELECTED ROWS, FOR EXAMPLE
repeat with oRow in selected rows
repeat with strColID in lstColID
-- UNLESS THIS IS THE NOTE, RESET THE TEXT OBJECT
if (contents of strColID) ≠ strNoteID then ¬
tell cell id strColID of oRow to set value to value as string
end repeat
end repeat
end tell
end tell