With this code, the text color changes when I press the option key or not, but only in the word initially under the mouse, and does not move to (or extend to - what I really want) other words in the field.
Code: Select all
if the mouse is down
then
put the mouseChunk into theChunk
repeat until the mouse is up
get the mouseChunk
put min(word 2 of it,word 2 of theChunk) into word 2 of theChunk
put max(word 4 of it,word 4 of theChunk) into word 4 of theChunk
if the optionKey is down
then
set the textColor of theChunk to blue
else
set the textColor of theChunk to red
end if
end repeat
end if