Modifying attachments in Notes

How do I programmatically modify the contents of an attachment in Lotus Notes. Any help appreciated.

Subject: Modifying attachments in Notes

What do you mean? Ex: Edit a word document directly with Lotusscript?

JYR

Subject: Modifying attachments in Notes

Detach to the file system. Modify the attachment using an appropriate OLE-driven application (on Windows – similar methods using Java are available on other platforms) and save changes. Remove the original attachment from the document. Save the document in order to “commit” the removal (necessary in some Notes/Domino versions and not a huge drag, so worth doing just in case). Finally, attach the new version of the file and save the NotesDocument again.