AppleScriptでOutlookからメールを送る際のメール本文内の改行について
複数の受信者に個別にOutlookから同じ内容のメールを配信しようとしています。
メール本文に記載する内容がかなり長いため適宜改行したテキストで本文を送りたいと思っています。
以下の方法で試してみましたが、改行がうまくOutlookの本文では反映されずに「TextATextBTextC」のように一行で表示されます。
どなたか改行についてご存知のかたがいらっしゃればご教示のほどよろしくお願い致します。
set textItem to {"Text A", "Text B", "Text C"}
set defaultDelimit to AppleScript's text item delimiters
set AppleScript's text item delimiters to ASCII character (13)
set textItem to textItem as text
set AppleScript's text item delimiters to defaultDelimit
tell application "Microsoft Outlook"
set srcFile to ("/Users/<User name>/Desktop/<File name>.txt") as text
set lns to paragraphs of (read srcFile as «class utf8»)
repeat with ln in lns
set the clipboard to ln
set theMessage to make new outgoing message with properties {subject:"Test email", plain text content:textItem}
make new recipient with properties {email address:{address:ln}} at end of to recipients of theMessage
send theMessage
end repeat
end tell