I cant get text the way I want in body of email in Outlook
here is what I want:
eMam
test
here is my code
tell application "Microsoft Outlook"
activate
set theContent to return & return & return & "eMam" & return & "test"
open theMessage -- for further editing
end tell
I think this is because Microsoft Windows lives in a linefeed, not a carriage return-based world.
(lots of history behind TTY devices goes into that semi-religious war).
In either case, this seems to get what you want in Outlook:
tell application "Microsoft Outlook"
activate
set theContent to linefeed & linefeed & linefeed & "eMam" & linefeed & "test"
-- open theMessage -- for further editing
end tell
The alternative would be to construct your string outside of the Outlook block:
set theContent to return & return & return & "eMam" & return & "test"
tell application "Microsoft Outlook"
activate
open theMessage
end tell
but this might not be an option if you’re trying to construct the string with content from the message in question.