Facetime "crashes"
Seems that Facetime eventually stops responding and the camera goes dead. I'm not sure if others experienced this but I have to restart facetime. I wonder if having the camera going 24 hours per day eventually causes an issue. Maybe minimizing Facetime at the end of a call might help this situation or even closing the app?
Good point, AirMessage should definitely be disabling the FaceTime app while it's not in use. I'll look into this!
I'm thinking in the leaveCall script issue the following command right before the three returns:
tell application "Facetime" quit end tell
This might also allow one Mac to have multiple Airmessage users enable Facetime as the camera won't be locked to one user. Facetime/MacOS definitely seems to lose the camera and say no camera found. This will also clean reset Facetime in case it got caught in some wierd menu. I notice that some MacOS verifications for AppleID block Facetime functionality until they are dismissed. Alpha 8 is definitely better already but I'll report another issue separately.
New discoveries.
- Facetime will not activate from a log in screen.
- The comands get queued up if you try multiple Facetime sessions and later run on top of each other as well. That also messes with Applescript automating FT properly and requires a restart of FT.
- In fact, if Facetime was running and you go to a login screen the camera is also instantly disabled as well when you log back in.
- Facetime will also not activate if a screen saver is running. Maybe there is a way to Applescript out of the screen saver but easier to disable it entirely.
MacOS is introducing some caveats here.