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

Community Beginner ,
Apr 22, 2022 Apr 22, 2022

Copy link to clipboard

Copied

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

THANKS....

TOPICS
Actions and scripting , SDK , Windows

Views

118

Likes

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
Adobe Community Professional ,
Apr 22, 2022 Apr 22, 2022

Copy link to clipboard

Copied

@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.

Likes

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

Copy link to clipboard

Copied

@Stephen_A_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.

Likes

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
Adobe Community Professional ,
Apr 28, 2022 Apr 28, 2022

Copy link to clipboard

Copied

@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...

Likes

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

Copy link to clipboard

Copied

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

Likes

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
Adobe Community Professional ,
May 06, 2022 May 06, 2022

Copy link to clipboard

Copied

LATEST

@majhari49317888 - Did you try this script?

Likes

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