Hi, guys,
I came across this great AppleScript on GitHub that is supposed to toggle Picture-in-Picture feature on Safari, but, unfortunately, it’s a bit outdated and does not work with macOS Ventura. Seems like the perform action "AXShowMenu"
cannot be accomplished because the hierarchy (of the window(s)) changed.
Are there any guys that are experts in accessibility that can suggest a possible patch? I’m trying to trigger the stock Safari Enable Picture-in-Picture context menu item that is situated on the Mute All Tabs
button on a tab that has active (YouTube) media playing.
Thanks, all!