I would like to ask for a new action to hide all foreground apps except the one that is at frontmost (same behaviour than clicking the menu item "Hide Others" or hitting ⌘H).
It would be very handy tthat his action could allow an option to exclude some apps to be hidden (a exception list).
Thanks!
Until something built in exists, a possible workaround is to trigger an AppleScript from BTT that talks to System Events and sets visible to false for processes that are currently visible, aren't frontmost, and aren't on a list of names you want to keep. I haven't tested this myself, so the exact syntax may need some tweaking. Something along the lines of: tell application "System Events" to set visible of (every process whose visible is true and frontmost is false and name is not "Finder") to false. You could add more names to the exclusion part for your exception list.