Found #1: Application.LiveDrawingSettings.
Now for #2?
I already found your useful pages
What I'm missing is the way to retrieve the pagesPanel object.
Currently I'm scanning the Application Panels collection until I find an object of type PagesPanel; I don't "trust" going by name or index.
I hoped there was a quicker way.
1 person found this helpful
What if you use panels.itemByName ? (You'd have to check what the "Pages" panel is called first, but perhaps it's as simple as "Pages" )
Yes, I could go by name, but it changes when Indesign locale changes (I surely don't wish to mess with such kind of things).
In the end, I'm finding the panel which type is "PagesPanel"... sad but I guess it's the smartest and safest approach.