How to eliminate "returns" on the text?

I have one text variable like:
“abc
DEF
fgh”

with these “returns” (or enters).

I would like to transform it on a list like {“abc”,“DEF”,“fgh”}
how to do it? I don’t know how define the “return” as a delimiter

Thanks

Model: macbook
Browser: Safari 531.9
Operating System: Mac OS X (10.6)

set valdel to AppleScript's text item delimiters
set AppleScript's text item delimiters to "
"
set the valtxt to every text item of valtxt
set AppleScript's text item delimiters to ""
set AppleScript's text item delimiters to valdel

:slight_smile:

Ok! Worked, Thanks!

Since returns delimit paragraphs and AppleScript is aware of paragraphs:

set myText to "abc
DEF
ghi"
set tList to paragraphs of myText
tList

This works, by the way, whether the return character or enter character has been used.