How to check if a hovered App in Dock has already running windows?

Hi Andreas,

the new Window Switcher in combination with the "Mouse Hovers Dock App Icon" is great.

Currently I am trying to achieve the following behavior:

  1. A left-click on a non focused App in the Dock brings up the last opened window of this App
  2. A left-click on a focused App is doing nothing
  3. A left-lick on a non running App or App without windows is opening a window (standard macOS behavior)

I managed to get (1) working with the "Activate Hovered Item in Window Switcher" action in combination with "Trigger while mouse over Dock" and BTTWindowSwitcherActive = 1

To achieve (3) I want to check if a hovered App in the Dock has already running windows and if not I want to just pass through the left-click to mimic standard macOS behavior.

Can you think of any way to achieve this? I also played around a bit with the "Dock App click" action, but it seems not to fit for my usecase.

Thank you and best regards,
Volker

Do you mean clicking an inactive app should bring forward only its most recently used window, leaving its other windows where they are, while clicking an app with no windows should behave normally?

Irrelevant to the question being asked, sorry, but how did you get the Mouse Hovers Dock App Icon to work with little window showing. It is not working for me.

you can configure that via the "Mouse Hovers Dock Icon" trigger.

If "inactive" means that the app has opened windows but none of them are frontmost - then yes that's what I try to achieve.

I've already achieved the first part, but struggle to find out which apps do not have a running window so that I can configure the second part.