Can you tell from AppleScript if Messages was actually sent?

This used to work...

Now my try blocks are never triggering an error... even if the message says "Not Delivered"

Is there a way to tell if the message was actually sent?

Also, does the send function return anything?

Really hard to find docs on this stuff.

Code Block
on run
tell application "Messages"
set phoneNumber to "+5555555555"
try
send "This is an iMessage" to participant phoneNumber of (account 1 whose service type is iMessage)
log "Sent as iMessage to: " & phoneNumber
on error
try
send "This is an SMS" to participant phoneNumber of (account 1 whose service type is SMS)
log "Sent as SMS to: " & phoneNumber
on error
log ("ERROR: COULD NOT SEND")
end try
end try
end tell
end run

Can you tell from AppleScript if Messages was actually sent?
 
 
Q