wordFiller
- global property
- new in 1.40
- The wordFiller is initially set to "?" to represent any unspecified words when putting a value into a non-existent word:
set phrase to "start here"
put "the end" into word 7 of phrase
put phrase -- "start here ? ? ? ? the end"
Set the wordFiller to empty for the same behavior as earlier releases (simply fill in with a single space), or to a different value:
set the wordFiller to "umm..."
put "Hello and" into greeting
set word 5 of greeting to "welcome!"
put greeting -- "Hello and umm... umm... welcome!"
The delimiter used between words is the first character of the value of the wordDelimiter property (by default this is a space character). Optionally, you may set the wordFiller to an array of two values rather than a single value. In this case, the first value will be the filler word, and the second value will be used as the delimiter between words.
- Related: wordDelimiter, characterFiller, lineFiller