Recibí mensajes de texto. script.Is que me muestra cómo hacer algo? ¿Se utiliza para enviar mensajes que obtengo en otro lugar u ocultar de alguna manera? ¿Se está utilizando para bloquear mensajes?
(* INSTRUCTIONS
Messages includes the ability, within its preferences panel, to assign AppleScript scripts to a wide variety of Messages events. The following handler is called when a text invitation is received.
*)
using terms from application "Messages"
on received text invitation this_message from this_buddy for this_chat
(*EXAMPLE: this routine automatically accepts a text chat invitation for specified buddies
set this_name to the name of this_buddy
if the name of this_buddy is in {"Johnny Appleseed"} then
set the greeting_name to the first name of this_buddy
if the greeting_name is "" then set the greeting_name to this_name
accept this_chat
send "Hello " & greeting_name & "!" to this_chat
end if
*)
end received text invitation
end using terms from