I try to automatically log in to an editorial system (K4) after InDesign starts. The K4 plug-in is scribtable and I can log in after InDesign has started with no problem. Putting the log in script into start up scripts does not work since apparently the plug-in has not been loaded when the startup scripts starts.
So I tried my luck with event scripting. But adding an event listener to the main menu or the K4 menu("beforeDisplay") or the menu action does not work. I get the message that I cannot log in.
What does work is putting the code into an afterNew event listener. But that, of course is not what I want. I would need an aftereverythingisloaded event.