Unable to access embedded object

I have a group updating documents via a web browser. when they are done I kick off an agent that sends an email that is supposed to have an attachment from the document updated. It was originally saved into a rich text item, but now looks like a part of the document. Doc.hasitem says true, but I can not access it. I also tried to grab it through the rich text item to no availAnyone else seen this.

Subject: re: unable to access embedded object

I have always had a difficult time working with file attachments. Are you using the HasEmbedded property to check for the existence of the attachment? How about the EmbeddedObject property to access the the array of NotesEmbeddedObject elements?

Those would be the only things I can think of.

Subject: unable to access embedded object

yes, that is what I was doing. I was given another solution. it was Creating a temp doc and grabing the attachment out of $filethanks