¿Alguien conoce una forma rápida de modificar el siguiente script (de CornDoggyRob) para maximizar automáticamente la ventana de llamadas entrantes y ajustar la orientación? Me encantaría probar esto con un par de personas discapacitadas, que no pueden responder físicamente/ajustar el tamaño, y he probado varias cosas, pero me temo que no estoy muy familiarizado con los comandos de AppleScript.
- Respuesta automática de Facetime - Copyright ©2010 CornDog Computers - twitter: @CornDoggyRob
repeat
— Check to see if Facetime is active
tell application "System Events" to set theCount to the count of (processes whose name is "Facetime")
if theCount = 0 then
do shell script "sleep 1"
else
tell application "FaceTime" to activate
do shell script "sleep 2"
tell application "FaceTime" to activate
tell application "System Events" to tell process "FaceTime"
if name of front window contains "with" then
do shell script "sleep 5"
else
tell application "System Events" to activate application "FaceTime"
keystroke return
do shell script "sleep 5"
— Check to see if call is active
tell application "System Events" to tell process "FaceTime"
if name of front window contains "with" then
do shell script "sleep 5"
else
— Quit Facetime if call is not active
tell application "FaceTime" to quit
do shell script "sleep 5"
end if
end tell
end if
end tell
end if
end repeat
end