Need barebones script to run automatically after specific document open
Team, so far I've found this to be the best start: Re: Why will this not work on startup?
I've gotten as far as putting a script in the startup scripts folder and it even runs...(I replaced the Then action with a simple alert) But the script given in that discussion's answer seems to do its thing before the document even opens. I'm not sure that's what I want. Here are the basic things I would like my script to do;
- Run as the very last thing the app does, after the document is open/viewable, after any Preflight or other dialogues, but before I do anything else in the document. (Currently I replaced action with a simple alert for testing)
- Target a specifically named document but not others.
- Run if I double-click the specific document to start it/and the app, OR run if I open the document (clicking it or from File menu) when the app is already running/open.
- Run if I open the specified document from a book panel (book file)
Can anybody suggest some tips or a barebones script, ie the beginning and the IF part of the script so that I can fill in the THEN part with the action I want to accomplish?
NOTE: I am a scripting/javascript newbie... please be extra clear with ideas... if you give developer level jargon (without the exact code), I will not understand a thing your saying... Please do not throw this InDesign ExtendScript API (12.0) at me... it looks like a great reference but doesn't translate anything into actual code, therefore it's completely useless to me. (right now)
Thank for any help.
