i am validating xml structure based on dtd. when i validate manually in indesign, marked panel is opened but i validate through extendscript toolkit marked panel is not opening why??? how can i open that panel through extendscript please guid me.
You could hunt for a menu action. But I guess, there is no way.
To get a list of all menu actions you could use a script by Peter Kahrel:
Unfortunately all related discussions in the InDesign Scripting Forum Peter linked to are not with us anymore. They were not transfered to the new Adobe InDesign forum last year.
Properties and methods of menuActions can be found here:
( ACP )
Thanks for ur reply. I will try my best.
First time I've come across that panel - never tried a dtd with InDesign as I prefer xsd to validate. Another bag of bugs, using a random dtd from Oxygen yields some strange error messages. Enough ranted.
Note for plug-in developers, widget ID is kValidationSubPanelWidgetID.
kStructureValidateRootActionID has ID 0x133D9 - hex value, can be used with itemByID().
Localizable name is "Structure_ValidateRoot"
So this menu action won't just open the validation panel but also perform the validation. In other words, no way to check the check mark of the action to see whether it is opened, also no way to close.