Ho ricevuto messaggi di testo invito. script. Mi sta mostrando come fare qualcosa? È usato per inviare messaggi ottengo un altro posto o mi nascondo in qualche modo? Viene utilizzato per bloccare i messaggi?
(* 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