Hi All,
is it possible to delete lines from the content of a new outgoing message. It may seem like a strange question but I’m joining a variable and a signature when creating the message but inserting the signature seems to add a few blank lines so I just wandered if I could edit the content and delete them?
Here’s my script:
tell application "Mail"
activate
set theMessage to make new outgoing message with properties {subject:"The subject", content:"Hello " & recipientName, visible:true, sender:theSender}
set message signature of theMessage to signature theSignature
tell theMessage
make new to recipient with properties {name:recipientName, address:emailAddress}
--send
end tell
end tell
I’ve tried this:
tell content of theMessage to delete paragraph 3
but it does nothing.
Thanks,
Nik