• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to trigger Phtoshop menu item: Arrange > 6-up, using Javascript/Extendscript.

Community Beginner ,
Apr 21, 2020 Apr 21, 2020

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?

TOPICS
Actions and scripting

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 21, 2020 Apr 21, 2020

stringIDToTypeID("6upTile")

Votes

Translate

Translate
Adobe
Community Expert ,
Apr 21, 2020 Apr 21, 2020

Copy link to clipboard

Copied

stringIDToTypeID("6upTile")

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2020 Apr 21, 2020

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2020 Apr 21, 2020

Copy link to clipboard

Copied

Not sure, I actually used xbytor’s »ActionToJavascript.jsx« to translate an Action of the command. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2020 Apr 21, 2020

Copy link to clipboard

Copied

Thanks for the information. It seems very useful for any Photoshop extension developer.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2020 Apr 21, 2020

Copy link to clipboard

Copied

Record it to ScriptListenerJS.log by clicking Insert Menu Item from Actions panel dropdown menu.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2020 Apr 21, 2020

Copy link to clipboard

Copied

Kukurykus thank you very much its working like a charm :).
At first I stumbled upon how to use it since the 'Insert Menu Item' menu item in Action panel was disabled. Then I created a new Action and while the action was selected I found that the menu item was now enabled. After clicking 'Insert Menu Item' I got a dialog saying none menu item selected, so I selected a Photoshop menu item and clicked OK. This caused addition of the menu item as action. Finally I checked the ScriptListenerJS.log file and found the stringID of the selected Photoshop menu item.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2020 Apr 21, 2020

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2020 Apr 21, 2020

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 22, 2020 Apr 22, 2020

Copy link to clipboard

Copied

LATEST

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.

Davide Barranca - PS developer and author
www.ps-scripting.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines