Copy link to clipboard
Copied
I found this Application.runMenuItem() method but unable to find the menu ID for Arrange > 6-up. I know we can use stringIDToTypeID() but again for this I need the string ID for 6-up which I am unable find. So can any one provide me either menuID or stringID for 6-up menu item in Arrange menu or may be a working Javascript/ExtendScript to trigger 6-up menu item?
stringIDToTypeID("6upTile")
Copy link to clipboard
Copied
stringIDToTypeID("6upTile")
Copy link to clipboard
Copied
Thank you very much for your help. May I ask where I can find these IDs, I mean is there any documentation listing all these as I checked in Scripting Guide and also Scripting References but can't find.
Copy link to clipboard
Copied
Not sure, I actually used xbytor’s »ActionToJavascript.jsx« to translate an Action of the command.
Copy link to clipboard
Copied
Thanks for the information. It seems very useful for any Photoshop extension developer.
Copy link to clipboard
Copied
Record it to ScriptListenerJS.log by clicking Insert Menu Item from Actions panel dropdown menu.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Kukurykus, C_ do you consider it normal having to use such techniques, or are they hacks/workarounds? Shouldn't a software provider that wants a healthy ecosystem provide those in a sdk/scripting guide?
Copy link to clipboard
Copied
It never was normal, but for nearly 20 years scripting guides are really not good refreshed, for new releases. I don't even know if SDK was ever updated. There should be better team to manage them.
Copy link to clipboard
Copied
This is the reason why I wrote, and I keep up-to-date, a book on Photoshop Scripting!
Shameless plug aside, PS Scripting has two domains: DOM based, and ActionManager – the latter being a superset of the former, but way less user-friendly. To be fair, PS is 30 years old and over time it has accumulated layers upon layers of different features, and not all of them are perfectly coherent with each other.