Page 1 of 1

switch between active documents (Ctrl+Tab)

Posted: Mon Nov 18, 2019 1:11 pm
by klevteev
Good day!
Please tell me the syntax to switch to another active document in photoshop?
after duplication... similar to Ctrl+Tab

I can save and close the open active document of course and work with the original, but still want to check with the first.
So, as a result how to switch between active documents a script?

With respect, klevteev!

Re: switch between active documents (Ctrl+Tab)

Posted: Tue Nov 19, 2019 4:51 pm
by Kukurykus
You can also preced one by minus for previous document:

Code: Select all

sTT = stringIDToTypeID; (ref = new ActionReference())
.putOffset(sTT('document'), 1); (dsc = new ActionDescriptor())
.putReference(sTT('null'), ref), executeAction(sTT('select'), dsc)

Re: switch between active documents (Ctrl+Tab)

Posted: Wed Nov 20, 2019 10:45 am
by klevteev
Thanks, but I used this:

Code: Select all

ishDoc = app.activeDocument

var theCopy = aDoc.duplicate (filename);
FaceDoc = app.activeDocument

app.activeDocument = ishDoc
So, I can change this)