HUD Overlays in AppleScript

Hi,

Is it possible to generate a HUD Overlay within the "Run Apple Script" action? Alternatively, can I create a global variable from the script's result, pass it back to BTT, and then use it in an additional action to display it in a HUD?

I have scripts that switch audio inputs and outputs using switchaudiosource. They work, but I’d like a visual confirmation that they executed correctly. A HUD seems more suitable for this purpose than a system notification.

Thanks.

easiest is to use a variable in the hud action, have a look here:

It‘s also possible to do everything from the script, but the variable approach makes formatting easier

Ah, thanks. ChatGPT helped me a bit, but it’s finally working as I wanted. :slight_smile: