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

i run a script in Ps when I press the ctrl tab.

Community Beginner ,
Apr 22, 2022 Apr 22, 2022

I run a script in Photoshop when I press the ctrl tab . IS IT POSSIBLE ? PLZ HELP.

THANKS....

TOPICS
Actions and scripting , SDK , Windows
427
Translate
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
Adobe
Community Expert ,
Apr 22, 2022 Apr 22, 2022

@majhari49317888 – it appears that your post is somewhat lost in translation...

 

Are you asking if it is possible to make a custom Keyboard Shortcut to run an installed script using the CTRL TAB keyboard combination?

 

Have you tried using Edit menu > Keyboard Shortcuts... ???

 

On a Mac I can't do so.

 

Edit: Same in Windows, so I don't believe that it is possible.

Translate
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 22, 2022 Apr 22, 2022

@Stephen Marsh  -- Sorry for That

 

i want a script to run when i prees the control + tab. like the Script Events Manager but i dont found in Event ID Codes for Switch Between open Documents

not for Mac.

thanks.

Translate
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 28, 2022 Apr 28, 2022

@majhari49317888 

 

You can record an action or use a custom script to cycle forward or backward through the open doc windows, then add the code to "do something" and add a new custom keyboard shortcut to run the script (you can't use ctrl tab though).

 

// 1 forwards | -1 backwards
cycleDocWindows(1);

// Do something else...
alert("Hey, it's a new document window!");

function cycleDocWindows(forBack) {
    var s2t = function (s) {
        return app.stringIDToTypeID(s);
    };
    var descriptor = new ActionDescriptor();
    var reference = new ActionReference();
    reference.putOffset(s2t("document"), forBack);
    descriptor.putReference(s2t("null"), reference);
    descriptor.putInteger(s2t("documentID"), 0);
    executeAction(s2t("select"), descriptor, DialogModes.NO);
}

 

There are 'Prvs' and 'Nxt ' events, but they are not for ctrl tab, I'm not sure which events these are for...

Translate
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 28, 2022 Apr 28, 2022

Store open documents to array and go through them by indexes.

Translate
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 ,
May 06, 2022 May 06, 2022
LATEST

@majhari49317888 - Did you try this script?

Translate
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