Extract Text from document and append spotlight comments

Hi,

I have been trying to extract text from a document and append it to the spotlight comments. I was hoping to use grep to extract the ‘Header’ line, but am unsure of how to append the spotlight comments from within the script.

I have also tried this in automator, and have failed so far.

If anyone has any suggestions, I would really appreciate it.

thanks,
Seth