I wrote a piece of code to replace the "See attached file: " string with a link to the underlying attachment.
function replaceSeeAttached() {
var the_id = "entryBody";
h=getComponent(the_id).getValue().toString();
h=h.replace(/\<i\sclass=\"domino-attachment-ref\"\>\(.*\:\s(.+?)\)\<\/i\>/g,
"\<a href=\"" + @Word(context.getUrl(),'.nsf',1) +
".nsf/xsp/.ibmmodres/domino/OpenAttachment/" +
database.getFilePath().replace(/\\/,"/") + "/" +
currentDocument.getDocument().getUniversalID() +
"/body/$1\"\>$1\<a\/\> ");
getComponent(the_id).setValue(h);
}
The code can be stored in a SSJS Lib and triggered by a call in the AfterPageLoad event