ignoring white space?

Hi,

When I run this:

set t to "ab cd"
ignoring white space
	words of t
end ignoring

→ {“ab”, “cd”}

Is that right?

Thanks,
kel

Yes. You can still pick out the individual elements when ignoring white space, but it’s effective when comparing entire strings:

ignoring white space
	"ab cd" = "abcd" --> true
end ignoring

Hi Nigel,

So, ‘ignoring white space’ doesn’t work all the time for parsing text, but does work for comparisons.

Thanks,
kel

I just reread AppleScriptLanguageGuide.pdf.

I should have checked that before posting. It’s right there in the first lines. Sorry about that.

Thanks a lot,
kel