AppleScript – "text item delimiters" uses non-specified delimiters - FIXED

SOLVED

I want to parse some plain text and pull out the 11th and 13th words. I can't get it to work because "text item delimiters" sometimes treats additional characters as delimiters.

set test_text to "one two three four five six seven eight nine ten elev-en twelve thir-teen"
set AppleScript's text item delimiters to ""
set AppleScript's text item delimiters to {" "}
set word_11 to word 11 of test_text
set word_12 to word 12 of test_text
set word_13 to word 13 of test_text
set word_14 to word 14 of test_text
set word_15 to word 15 of test_text
set AppleScript's text item delimiters to ""
log word_11 & " " & word_12 & " " & word_13 & " " & word_14 & " " & word_15

The result is: (elev en twelve thir teen)

But the result should be an error – it should NOT be using the hyphen as a delimiter.

Why is the hyphen being used as a delimiter ?

UPDATE: Because I should be using "text item" instead of "word"

AppleScript – "text item delimiters" uses non-specified delimiters - FIXED
 
 
Q