Thanks, this works perfect... but its toggling the panel.
So how is it possible to find out if the panel is visible or not?
And something else: is there something similar in Illustrator to the InDesign events afterSelectionChanged & afterSelectionAttributeChanged?
1 person found this helpful
I am not certain, but it seems that there is no such events in Illustrator ExtendScript.
I think it is impossible to know the panel is visible or not via Illustrator ExtendScript.
But perhaps someone better versed and will suggest solution in this issue..
As a partial solution, you may set two panels together (for example Paragraph Styles and Character Styles), and then run this script:
executeMenuCommand('Adobe Paragraph Styles Palette'); executeMenuCommand('Character Styles');
In this case, the panel will always unfold.
Excellent. This does the trick!