Share via

AppleScript to Format Text in New Message?

Anonymous
2020-06-24T12:50:37+00:00

Hi all,

I am working on an AppleScript that creates a new email. I have it all working but I want the script to change the color of some of the text in the message body. I've tried everything I know. Is this possible? If so, can someone point me to some code examples?

Thanks,

Jon

Outlook | MacOS | Legacy Outlook for Mac | For business

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2020-06-30T12:34:50+00:00

Hi Jim,

I was able to get it to work by adding the following code:

<span style=color:blue;>Text Goes here</span>

Thank you,

Jon :-)

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-06-24T16:10:16+00:00

    Hi Jim,

    Thank you for the reply.  What if I put the HTML code around the text I want to be a specific color?  If I can put "<b>" and </b> to make a line of text bold, it seems like I should be able to color the text as well?

    Best regards,

    Jon :-)

    Was this answer helpful?

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Jim G 134K Reputation points MVP Volunteer Moderator
    2020-06-24T15:01:22+00:00

    Hi Jon,

    The AppleScript dictionary has only one entry for color, and that is the color of categories.

    If you want control of the font color, build your message in Microsoft Word and then send it to Outlook as HTML.

    Was this answer helpful?

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more