The Trigger: Specific App Did Close / Hide Window doesn't always trigger the very first time of closing and as far as I can tell, never when a window is hidden. Entering/Exiting Fullscreen mode also has unexpected results.
I have tested a few apps with varying triggering results but have no explanation as to why they would trigger so differently.
Each trigger was set up from scratch as they behaved differently again when I edited a pre-existing trigger:
Trigger Actions
Window Closed
Window Hidden
Enter Fullscreen
Exit Fullscreen
Google Chrome
Yes
No
Yes
Yes
Safari
Yes
No
Yes
Yes
Spotify
Yes
No
Yes
Yes
Pages
From 2nd onwards
No
Yes
Yes
Finder
From 2nd onwards
No
No
Yes
Mail
From 2nd onwards
No
No
No
BetterTouchTool
From 2nd onwards (unless this window is the clipboard manager where it will never trigger until another BTT window has been closed at least once)
No
Yes after a window has been closed once (But not for the clipboard manager)
Yes after a window has been closed once (But not for the clipboard manager)
Device information:
Type of Mac: MacBook Pro 16" Nov 2024 M4 Max
macOS version: Tahoe 26.3
BetterTouchTool version: 6.219 (2026022609)
PS I came across this because I was trying to use the BTT Clipboard Manager Opening/Closing as a Trigger.
Earlier I created a Feature Request thread for this if you have time to look!
That trigger listens explicitly to system notifications sent by the apps when a window is being destroyed. Unfortunately the exact behavior depends on the app, some send the notification when the window is just hidden, some send it only when the window is really removed from memory. Full screen often also creates / destroys window, which is why it behaves weirdly in some situations.
This trigger is still quite powerful, but it really depends on the app's implementation and your usecase.
For the clipboard manager better listen to the BTTClipboardManagerOpen variable and use a if condition:
The strangest behaviour however was that some apps (including BetterTouchTool, Finder, Pages, Mail) only trigger from the second time a window is closed onwards. Luckily it only ignores the VERY first time as far as I tell as system/app restarts don't seem to affect it.
Thanks for pointing me towards Variable Value Did Change
This looks a very powerful trigger!