I'm breaking up several large PDF files into smaller ones. Also, I'm creating bookmarks linking the documents together as navigation. The pages open in the existing window, so the documents act as one large PDF file.

I wrote a script that creates a structure of nested bookmarks, but how do I add the "open new file in existing window" command to every bookmark's properties?