Capturing the corresponding process/app of a window

I’m using KeyboardMeastro to hide some apps when they are not in the front. I want to exclude some faceless apps like the TouchID authorization window which might get the focus. Is there a way to figure out what the process name of a certain window is?

Somewhat related to this, but for 1Password. Is there a way to get app links used in 1Password (like app://com.apple.appstore) after the login is created?

I’ve changed to logic to the inverse, so it only hides the app when switching to one of my favorite apps. If someone still knows the 1Password question :wink: