Copy link to clipboard
Copied
Hi,
I am creating a second window of my image with the Window > Arrange > New Window for... function.
Now i want to close the second window again without closing the first one, but everything i tried so far closes both windows.
app.activeDocument.close() // Closes both windows
Action > insert menu item : Close // Closes both windows
Weirdly enough an action calling the menu item "Close" behaves differently than if i click the Close button manually. Clicking the Close button manually only closes the second window instead of the whole file.
Anyone any ideas how to solve this? 🙂
Thanks in advance!
Copy link to clipboard
Copied
The creation and the closing of a new Window for an open document seem to produce no Action Manager code when recording with ScriptingListener.plugin so the feature may not be scriptable indeed.
If no one else can offer more insight into the issue you could post a Feature Request over at
Photoshop Family Customer Community
but I doubt it will get a lot of traction.
Copy link to clipboard
Copied
Thank you very much for your response.
The creation of a new Window for an open document, which also produces no Action Manager code can be done with script:
app.runMenuItem(charIDToTypeID('NwVw'));
So i thought there might be something similar to close it again? (As stated, running the Menu Item "Close" does, unfortunately, not work).
Thank you for your recommendation though
Copy link to clipboard
Copied
Well, consider my post more of a bump of the thread back up the list …
Copy link to clipboard
Copied
Is there a way to solve the problem now?