ok, i was not using any particular "test data" to test my script.
(I will do that next time)
The problem was that what i thought was plain text actually was not plain text. The ampersand (&) character caused the problem. Secondly, there are quite a few characters (and things like spaces, empty lines) which don't go well with shell. I can probably work my way around with applescript to make sure that shell gets the proper text. But i would like to know if shell can do something about such characters.

Reply via email to