Hi,
So I just got CS6, and I'm wondering how I access menu items using Javascript?
Also, I'm looking at the CS6 JS reference, and it doesn't say whether app.activeDocument.selection is Read-Only. Hopefully not, because I would need this for my purposes in accessing the menu.
The item I wanna access is Select > Same > Stroke Color. Seems simple enough. Any help would be appreciated!
I have discovered a list myself, see https://gist.github.com/2719021, more info: http://goo.gl/EYBwa (Chinese)
For what you need is : app.executeMenuCommand('Find Stroke Color menu item');
Thanks! However, that is useful but not always good luck.
For example, "Drop Shadow" menu can be found twice in the .kys file, but none of these string is valid for app.executeMenuCommand(), the right string is "Live Adobe Drop Shadow".
And another, "OffsetPath2" will not work, the right one is "OffsetPath v22". And so on...
After some discoveries, I think menu strings in the .kys file that contain "\" will always work well.
North America
Europe, Middle East and Africa
Asia Pacific