I have an additional information to my question:
If I go to the container field and if I right click it, and choose the export field contents command, along with the "Automaticallu Open" option, the file opens perfectly. I tried with .pdf and with .msg files.
Bernard De Jonghe wrote:
I notice that the file is saved to a temporary location.
Are you specifying the temporary location in the script?