Hello,
How do I turn a list I have made into text with a return after each item?
My current script butts the items against each other.
Thanks!
Hello,
How do I turn a list I have made into text with a return after each item?
My current script butts the items against each other.
Thanks!
set myList to {"Twas brillig", "and the slithy toves", "did gyre and gimbel", "in the wabe"}
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to return
set myList to myList as text
set AppleScript's text item delimiters to tid
myList
--> "Twas brillig
and the slithy toves
did gyre and gimbel
in the wabe"
OR
set myList to {"Twas brillig", "and the slithy toves", "did gyre and gimbel", "in the wabe"}
set myText to ""
repeat with aLine in myList
set myText to myText & aLine & return
end repeat
O frabjous day! Callooh! Callay!
Thanks for the fast reply (during the MacWorld keynote, too…). This works perfectly.
Doug