如何从滚动字段中获取内容并将内容放在实时代码中的数组中。我有替换数组中内容的代码
on mouseUp
put "" into field f1
put "red,RED" & CR & "green,GREEN" & CR & "blue,BLUE" into myArrayToBe
split myArrayToBe by CR
put the number of lines of (the keys of myArrayToBe) into myArraylength
repeat with i = 1 to myArraylength
put myArrayToBe[i] into y
split y by comma
put y[1] into searchStr
put y[2] into replaceStr
put replaceStr &CR after field f1
end repeat
end mouseUp