I tried to set different foregroundColor of different lines of fld but only the last was well coloured.
I used this sample script :
Code: Select all
put "Blue,Black,Red" into colours
put "" into fld "MyField"
repeat with i = 1 to (the number of items in colours)
get item i of colours
put it into line i of fld "MyField"
set the foregroundColor of line i of fld "MyField" to it
end repeat
Second pass:
Code: Select all
repeat with i = l to (the number of line in fld "MyField")
set the foregroundColor of line l of fld "MyField" to (line l of fld "MyField")
end repeat
Another thing, when I try to paste some text from a LC application in a text document, it only works if I didn't QUIT my LC application. Is it normal?
I'm using:
Code: Select all
set the clipboardData["text"] to "MyTest"