I know that I can do it at the document opening or using the Action Wizard but I want to include this in a larger script.
At document open use this:
this.pane = "T";
You can't change the actual Initial View settings with a script, but you can force the Pages panel to show, as was described above.
Whenever I need to change some small settings for an automation script, settings that are not covered in the JS model, I write a plug-in for it. Of course this is platform dependent.
That's what i was afraid of.
Thank you all, your support is precious.