I'm implementing a "show in Finder" feature, but it's important that a new Finder window should always appear - regardless of which windows are already open.
It seems that Finder always prefers to activate an existing window sharing the same directory; in some cases it will even re-navigate an existing window to highlight the requested path.
I've tried NSWorkspace.shared.selectFile()
and NSWorkspace.shared.open()
, as well as running open
via shell script. All have the same effect.
Is there a way to force Finder to open new windows - even with duplicate paths?