My code
set phoneNumber to “+33681229536”
set smsMessage to “Hello”
tell application “Messages”
set myService to 1st service whose service type = iMessage
set myBuddy to buddy phoneNumber of myService
send smsMessage to myBuddy
end tell
I receive the message but I have this warning
“L’expéditeur de fait pas partie de vos contacts - Indésirable”
“The sender is not among your contacts - Junk”
The phone number is the first phone number of me in my Contacts Book
and when I delete the message from my iPhone I have this warning:
“Supprimer cette conversation comme courriel indésirable en l’envoyant à Apple”
“Delete this conversation as spam by sending it to Apple”
Two Choice :
“Indésirable - Ne pas signaler”
“Junk - Don’t report”
How to not have this warnings?
Model: MacBook Pro
AppleScript: 2.8.1 (183.1)
Browser: Safari 537.36
Operating System: macOS 10.11