My script which works very well with High Sierra no longer works !! ------------------------------ tell application "SecuritySpy" capture image camera number 13 as "/tmp/ss-temp-image.jpg" with overwrite end tell
tell application "Messages" set targetService to id of 1st service whose service type = iMessage
set theBuddy to buddy "++++++61" of service id targetService send file POSIX file "/tmp/ss-temp-image.jpg" to theBuddy set theBuddy to buddy "++++++64" of service id targetService send file POSIX file "/tmp/ss-temp-image.jpg" to theBuddy
end tell -----------------------------
I get this error: *********************** error "Error in Messages: It is impossible to obtain buddy id \"D6466B3B-5A63-42E4-9E61-82A81ED9BE41:+33787013861\"." number -1728 from buddy id "D6466B3B-5A63-42E4-9E61-82A81ED9BE41:+33787013861" ***********************
I've just tested this in Catalina and it works for me. Note that the phone number needs to be correct, so can you check this? Also try installing any available software updates (check the "Software Update" system preference) and also try rebooting your Mac.
Thanks for this test. Yes, everything is up to date. Yes the phone is correct. I just realized that iMessage has a problem. I will come back to explain once I have found it. Thank you