Cannot use older (2021) apple script to send message from Mail Application
I have a DB where I keep scripts that I used in the past. I now would like to use one of those and it hangs on one line. I tried other ones I have, and they all hang on the same line. See pic.
They all hang on the same line at the same word.
set theMessage to make new outgoing message…
The word message is where they hang.
I also went on the internet and found some scripts. They all hang at the same place. Here is my script as a test.
set recipientName to "Test"
set recipientAddress to "name@123.com"
set theSubject to ((do shell script "date '+%d-%m-%Y at %T'") & (" - Test"))
set theContent to "test"
tell application "Mail"
##Create the message
set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
##Set a recipient
tell theMessage
make new to recipient with properties {name:recipientName, address:recipientAddress}
##Send the Message
send
end tell
end tell
any idea as to why and how to fix?
MacBook Pro Apple Silicon