How do you run an attachment thats in another document?

I’m new to lotusscript so i might be missing something really simple…

I have 2 documents:

  • One in a teamroom that has attachment in it

  • Another email / note which has a button in it.

When you click the button, i want it to run the attachment thats held in the teamroom document.

My current thinking is to have the button script do the following:

Open DB by ReplicaID

Open document by UNID

Navigate to the attachment in the body field of the document

Run the attachment.

I want this to happen transparently, so when the user clicks the button, the next thing they see is the attachment as it opens.


My problem is at this early stage is what is the best way to navigate to the attachment, and more importantly, what command do you use to run it?

I cant seem to see an obvious command to do this.


the attachment is a .nsf file - so it should just open up in notes itself.

many thanks, Donald

Subject: How do you run an attachment thats in another document?

Take a look at NotesEmbeddedObject and the activate function…