So in Javascript you have the possibility to write something along the lines of this:
let array = "This.should.be.an.array";
array = array.split(".");
console.log(array)
/* This,should,be,an,array */
Now I know that in Applescript there is:
set theText to "This should be a list"
set theList to every word of theText
return theList
{"This", "should", "be", "a", "list"}
and also:
set theText to "This
should
be
a
list"
set theList to every paragraph of theText
return theList
{"This", "should", "be", "a", "list"}
and also:
set theText to "Thisshouldbealist"
set theList to every character of theText
return theList
{"T", "h", "i", "s", "s", "h", "o", "u", "l", "d", "b", "e", "a", "l", "i", "s", "t"}
But I don't know how to split an list where there are e.g. periods between the words.