TIMELY needing a Script which, upon Attached Document close, opens a Sibling Attached Document
I need execute precisely what the Subject states.
There is a document named Parent.pdf. It contains two attachments – Son.pdf, and Daughter.pdf. [and Son.pdf is multi-page]. When Son.pdf is closed by user, Daughter.pdf is to open [in a new window, as set by its Initial View].
If Son.pdf is a single-page document, I can achieve the effect through its Page Properties, with Trigger: Page Close, Action: Go to a page view. But this doesn't apply, as the user is to traverse multiple pages, prior to closing Son.pdf.
– – –
I have seen scripts to open an attachment by filename, but only as an Action of a Button Properties trigger [and while the parent document remains open].
I am aware of Document Actions, and Document JavaScripts [but only for setting a 'dirty file' state].
1. Can this be achieved by a document-level script?
2. Presumably nowhere else?
3. Precisely what code is called for? I have coded a modest amount, but have little intuitive guidance [beyond "don't be a sucker about case-sensitivity"]. My mastery of nomenclature, syntax, and punctation is limited.
Prompt replies shall be gratefully welcomed.
