I’m trying to figure this out.
I have this script that works beautifully in macOS 10.11 It sends the file “test.txt” to phone number 15555555555 (obviously not this but a real number) through messages which sends instantly and received as instantly.
set attached to POSIX file "/Users/<userAccount>/Desktop/test.txt"
tell application "Messages"
send attached to buddy "+15555555555" of service 1
end tell
I bring the script to macOS 12. A few things one the script changes from the above when I compile it. Some of the reserved words change.
set attached to POSIX file "/Users/<userAccount>/Desktop/test.txt"
tell application "Messages"
send attached to participant "+15555555555" of account 1
end tell
Issue:
it seems to work and attempts to send the file I can see the process bar. But it takes more than 5 minutes and eventually times out and says “Message Failed to Send” > The message to “+15555555555” failed to send. I tried it on 2 different macOS 12 machines with the same result.
Question:
Does anyone know how to fix the issue?
thanks