I have a script for adding layers that works perfectly. However, after executing this script I want to change the document properties to "fit page" and "show layers panel". Is there a way to set the navigation tab, page layout, and magnification using a script (under File>Properties>Initial View)? I know you can set those as your default in acrobat, but this script will be used by others who may not have that as their default, hence why I want to include it in my script.
No, these settings can't be changed using a script.
You can embed a script to force the Fit Page zoom level when the file is opened, but not the Layers panel.