This query returns a boolean value, indicating whether the master page palette is open (true) or closed (false).
Example.
PGetMasterPagePalette masterIsOpen;
if (masterIsOpen) PMasterPagePalette(false);
Comments or suggestions? Contact Adobe Developer Support