On Oct 2, 2008, at 9:21 AM, Bob Anderson wrote:
The following script works in 10.4.x but fails in 10.5.4. Suggestions?
set digitlist to every item of "0123456789"
I replied earlier, but my message seems to have disappeared, so I'll try again.
Before we go down the primrose path to never-never land, remember ...
set someText to "abcdefgh0123456789"
set AppleScript's text item delimiters to {""} -- the default value
text items of someText --> {"a", "b", "c", "d", "e", "f", "g", "h", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}
set AppleScript's text item delimiters to {"h0"}
text items of someText --> {"abcdefg", "123456789"}
set AppleScript's text item delimiters to {"pdq"}
text items of someText --> {"abcdefgh0123456789"}
'text items' depend on the value of 'text item delimiters'.