characters disappearing when asking for words of

I was trying to extract the number of words from .do#/d) and i got 2 instead of 1
I assume that there are characters that are considered to be word delimiters (one of them I know is . another #)
I wander where I can find the list of all such character or, better, a clever way to get a list of items going {.do#/d),b,c} out of an original string: .do#/d) b c

set myString to ".do#/d) b c"
set newString to {}
repeat with i from 1 to number of (what I do not know) in myString
set end of newString to (what I do not know) i of myString
end repeat
-- newString should now be {.do#/d),b,c} so i can then work on it by asking for its items

thanks for your help


set myString to ".do#/d) b c"
set {TID, text item delimiters} to {text item delimiters, {" "}}
set myWords to text items of myString
set text item delimiters to TID

return myWords

Thanks adayzdone,

That was really helpful.

That worked well in script editor but failed in xCode.
Can’t get text item delimiters of class “NSObject”. (error -1728)

I made it work like this:

set {TID,applescript's text item delimiters} to {applescript's text item delimiters,{" "}}