xx处为对方的icloud账号。
tell application "Messages"
set myid to get id of first service
set theBuddy to buddy "xx" of service id myid
repeat 10 times #1000是指次数,自定吧
send "I love you" to theBuddy
end repeat
end tell
xx处为对方的icloud账号。
tell application "Messages"
set myid to get id of first service
set theBuddy to buddy "xx" of service id myid
repeat 10 times #1000是指次数,自定吧
send "I love you" to theBuddy
end repeat
end tell