Create a link for an attachment instead of the icon in the rich text field

I want to create a link that will open an attachment instead of the normal icon. My problem is that I have attachments made with a notes client and V2 attachments at the bottom made with a browser on the same document. I want the links to be in the same place on the document for both types of clients and to look the same, hotspots or icons. I can not download the attachment and reattach to a rt field. Users can not run unrestricted agents.

I have looked through the forum and I saw the code that moves V2 attachments but as I said I can not detach it. I also saw the computed text formula (shown at the end) to show the attachments on the web with options to open or delete with check boxes. I am hoping I can use something similar to show both types of files in a Notes client and in a browser. But I have not been successful.

I am sure I am missing something simple about displaying the link in the Notes client. Any help would be appreciated, thanks.

Code for showing V2 attachments as links in a browser

@If(!@Attachments; @Return(“”); “”);

@If(@IsDocBeingEdited;

Remove attachments here:
” +

@Implode(“<input type="checkbox" name="%%Detach" value="”+@AttachmentNames+“">”+@AttachmentNames; “
”);

View attachments here:
” +

@Implode(“<a href="” + @Text(@DocumentUniqueID) + “/$file/” + @AttachmentNames + “">”+@AttachmentNames + “”; “
”))