I have a script I’ve used for years to send iMessage’s to phone numbers that exist in a column of a spreadsheet.
After upgrading to 15.2, the script runs when I tell it to, but it does not actually send the message. It results in “Message Send Failure.”
I’ve checked the System Settings, I’ve checked the Settings in Script Editor and Messages. I’ve searched online.
Any ideas on how to troubleshoot this?
I managed to solve it and figured I’d share in case anyone else ever searches for this in the future.
The old relevant portion of the script (that stopped working once I upgraded to 15.2), was this:
set PhoneNumber to "(123) 456-7890"
set TextMessage to "Hello"
set iMessageid to get id of first account
set theNumber to participant PhoneNumber of account id iMessageid
send TextMessage to theNumber
The new script that worked is this:
set PhoneNumber to "(123) 456-7890"
set TextMessage to "Hello"
set targetBuddy to PhoneNumber
set targetService to id of 1st account whose service type = iMessage
set theBuddy to participant targetBuddy of account id targetService
send TextMessage to theBuddy
I’m not bright enough to know why the old script stopped working, but grateful I found a solution.