These macros require Safari tab in which target PiP video hosted on to be active, a video is active and the tab is unmuted. You then press ⌃⌘P to toggle on/off built-in PiP.
That method with palette looks neat! It looks great with your provided icon too. Sadly I tested running your macro by name (I have no Magic Mouse, is it good?) and it fails.
Anyway, I updated my script to work with full AppleScript and require no dependency:
I updated again the macro for built-in Safari PiP. This should increase the performance, so I reduced the timeout to be 3 seconds.
Because I dog-food this macro, there are chances that I will improve this script as my knowledge on AppleScript increases. In that case, please check this GitHub Gists. Of course I will post the updates here too.
ooooh, that's SF Symbols! That explains the sharpness and good design.
thanks for the offer. I don't modify the Macros (nor Macro Group), I just call the "PIP" macro with Keyboard Maestro's trigger by name. The error notification looks like it cannot find the 'blue sound icon' unique image in my screen.
@ybbond when you start a video in Safari (14.1.1), a blue speaker icon (red arrow) appears at the top of the URL line. This is the screenshot in my macro.