Have you put this script in the startup folder?
re:"Have you put this script in the startup folder?"
I even tried using the openDataObject method to get the path of the attachment (which is specially encoded),
and then open it with openDoc. That failed on a security error.
Something strange is occurring here.
The one thing that bothers me is the use of "this" as the method object,
Is my function referring to "this" in the correct context / scope when it's in a folder-level script file ?
It probably isn't related to the security issue, but you are absolutely right - make sure you never use "this" in a folder level script. Instead, pass the relevant object as a parameter into your function.
Thanks TEST...and you are correct....but this indicates an extremely weak programming model here.
Even VBA with 15 YEARS of age exhibits better behavior and honors context at multiple levels with no coding changes.
SHAME ON ADOBE. This is terrible IMHO.