Question
How to close a document opened from attached documents
Hello.
I would like to close by script a document opened from an attachment of another document:

I tried with the following code :
this.fileToClose = app.openDoc("DocToClose.pdf",this);
this.fileToClose.closeDoc(true)
It works when the document is opened from anywhere, but not when it is an attachment.
Is there a way to do it similarly but for an attachment?
Many thanks in advance for your help.
