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

Script to close window created with Arrange > New Window ...

Community Beginner ,
Nov 28, 2014 Nov 28, 2014

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!

TOPICS
Actions and scripting

Views

376

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 Expert ,
Dec 09, 2014 Dec 09, 2014

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.

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 ,
Dec 09, 2014 Dec 09, 2014

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

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 Expert ,
Dec 09, 2014 Dec 09, 2014

Copy link to clipboard

Copied

Well, consider my post more of a bump of the thread back up the list …

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
Advocate ,
Oct 29, 2022 Oct 29, 2022

Copy link to clipboard

Copied

LATEST

Is there a way to solve the problem now?

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