PaperCutSoftware / teleportme

Connect people through a portal - Transport your inter-offices, meeting room, or common area communication across large distances with an automated FaceTime video portal.
http://papercutsoftware.github.io/teleportme/
MIT License
49 stars 8 forks source link

AutoAcceptInvites doesn't work on Mojave #17

Closed naturelgass closed 5 years ago

naturelgass commented 5 years ago

I'm trying to use your awesome project for a personal experiment!

It seems that on Mojave (10.14.5), is not answering the call on the receiver..

AutoAcceptInvites might not work anymore as expected...

I have set in Privacy & settings > Accessibility the Terminal & System Events (to control my computer)

Not sure if you still maintain this project, but it would be awesome if you could do a small update!

Thank you for your help! :+1:

naturelgass commented 5 years ago

After playing around and learning how AppleScript works, I found out how to auto-answer the call without relaying on AutAcceptInvites

For who ever is interested you can add the following code at the is_in_call() function

tell application "System Events" tell process "FaceTime" set acceptButton to a reference to (button "Accept" of window 1 of application process "NotificationCenter" of application "System Events") if acceptButton exists then click acceptButton end if end tell end tell

I will create a fork with a functioning script for Mojave 10.14.5 +