Exclude Finder copy windows in "close every window"

Hi.

The next simple script

tell application "Finder" to close every window

fails if there is one copy in progress.

How can Finder exclude the copy window from the list of windows to close?

Thanks in advance.

Hi,

This should do it.

tell application "Finder" to close every Finder window

Best wishes

John M

Hi John.
It works fine.
Many thanks !!! :slight_smile: