Copy link to clipboard
Copied
I run a script in Photoshop when I press the ctrl tab . IS IT POSSIBLE ? PLZ HELP.
THANKS....
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.
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.
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
Store open documents to array and go through them by indexes.
Copy link to clipboard
Copied
@majhari49317888 - Did you try this script?