Clearly the "as text" phrase in the demo script below is essential,
but why?
Because "first name" returns unicode text, as do all other text
properties of a person.
When you omit "as text", you are writing unicode text (i.e., two
bytes per character). If you open the file in Text Wrangler, and
show invisibles, you'll see that there's an upside-down question mark
before each character in the line where you did not use "as text" to
write it. That character represents the null character (ascii zero).
"Find" in TextEdit--and also in Text Wrangler, for that matter--
apparently can't handle Unicode text.
-- Michelle
--
If there's nothing that offends you in your community, then you know
you're not living in a free society.
Kim Campbell - former Prime Minister of Canada