Not when opening a file, but when opening a program?
Create a folder-level script with this code:
Works fine in Acrobat XI... Maybe it's (yet another) thing that not working correctly in the DC version.
Perhaps I need somewhere else in the settings to activate?
If so, it still does not work.
But if this is a possible DC error, then okay
Try ticking the "Enable menu items..." box in the second screenshot.
If that doesn't work I'd say it's either a bug or an undocumented change in the capabilities of the script.
No, it's not working.
PS. Thanks for help. I will waiting of fix this bug