I'm trying to create a macro that will end a FaceTime call (whether audio only or audio+video) on macOS Big Sur. The end call command is, sadly, not a menu item in the FaceTime app's menu bar, so I can't simply use the system's custom keyboard shortcut feature.
Basically the macro would just need to press the end button in the FaceTime app. Ideally it could be triggered globally, though if it only worked when the FaceTime app was in the foreground that would still be helpful.
The problem I'm happening seems to be getting the right window in focus. It's also hard to test because I need to be on a call to test it.
Was wondering if anyone on this forum has solved this one already and would be willing to share their macro or insights?
Sorry to take a few days to reply – I thought I'd receive an email notification or something when someone replied and, when I didn't, I assumed that there had been no replies.
In response to Chris:
No, it hasn't. Worth checking though.
Hmm, interesting. Seems pretty drastic. Makes me a little uneasy but perhaps that's irrational. Would that prevent new calls coming in? Anyway, probably not necessary to look into as your point 3 seems like it has more potential.
You're probably right. Resorting back to AppelScript is what I nearly always end up doing so I'll probably have to give it a go. It will still be tricky though as on Big Sur when a call is in progress the UI for the call and the end button seems to be in a separate system dialog or notification thing – a bit like what they're doing on iOS with the efficient UI / calls coming in as notifications rather than full size windows. So trying to work out how to identify the window of FaceTime or system dialog and how to identify the button will be tricky because I'll need to do all the testing while on the phone to someone. But sounds like I just need to pull my socks up (or, better yet, take them off completely) and do the hard work.