It occurred to me that what I really wanted was to select that text block and simply hit a button. But since the field in the SE is NOT a list field, the hilitedLines property does not work. I have to:
Code: Select all
if there is a stack "revNewScriptEditor 1" then
put word 2 of the selectedChunk into StartChar
put word 4 of the selectedChunk into EndChar
put word 7 of the selectedChunk into tField
put the number of lines of char 1 to StartChar of fld tField of stack "revNewScriptEditor 1" into startLine
put the number of lines of char 1 to EndChar of fld tField of stack "revNewScriptEditor 1" into endLine
set the backColor of line startLine to endLine of fld tField of stack "revNewScriptEditor 1" to "255,215,255"
end if
Craig