This code doesn't require special permissions and you don't need to place it in a trusted context or anything like that. However, you won't be able to use it in Reader since it can't change the names of bookmarks. Is that what you're trying to do?
If not, then please post the exact error message you're getting.
Thanks for the response. No, I'm not trying to use it in Reader. I'm working exclusively in Acrobat. But since you brought it up, what you're saying is that even if I got this working in Acrobat and saved it as Reader Enhanced, it wouldn't be able to change the name of the bookmark using Reader?
When I use either the trusted function (in the folder level script) or try to change the bookmark name directly in my local scripts, I get:
NotAllowedError: Security settings prevent access to this property or method.
enable global object security policy "Off" (although I've tried it both ways)
enable enhanced security "Off" (tried it both ways)
I noticed that I could make it work correctly through a menuitem, but that I want this to be affected when I sign a digital signature. Perhaps there's a workaround on this using the menuitem (perhaps make a hidden menuitem, and execute that? I'm not quite sure how to make that work, but maybe that's a possibility). I'd prefer to make this work the way it seems like it's supposed to... Thanks again.
Please post the FULL error message, including line number.
And no, it will never work in Reader, no matter what rights you apply to the file.
If it won't work at all, then I don't really believe that I can go any further with that. I'll go a different route. Thanks for your help.