>>321,322 全面撤回

attribute run ってなんのこっちゃと試してなかったが、まんま「選択されたテキスト」やん

set contents of selection of document 1 to newText
doc.selection.contents = newText
だけだね。素晴らしい