If you attach the second file to the first one, you can use openDataObject()
to open it.
Thankyou for your reply…much appreciated.
To check if I attach the file will this pdf stay hidden from the end user until they click the icon? will they be able to see it within reader?
Yes, the file will stay hidden, and yes, the script should work in Reader as
But be aware that the file is not 100% hidden. If the user will open the
Attachments panel, they will see it there, and would be able to open it
Can you make it 100% hidden within reader with security settings so they can’t open the attachment panels, or will that still allow them to open the attachment panel etc.
Many thanks for all your help
I don't think you can make it 100% hidden.
A big thanks again for your help on this.
I'd also look into using a package. I'm not sure, but I think it's possible
to reference one file in a package from another.
I will have a look at packages also.