And I copied the script exactly as it is above. I even typed it myself to make sure there were no windows line breaks in it.

Well, opening both your and iMaGes scripts in UltraEdit, having used the same method of saving both attachments to disk, only on his does UltraEdit ask if it should convert to DOS style line-breaks. Meaning that yours already has them...

Also, your script has an extra space after the \-characters which iMages does not have.

/Michael
_________________________
/Michael