Applescript(Mail) modifies the text color if a document is attachet in dark mode
In Big Sur with the dark mode selected, if an attachment is added to a message, the text color is modified.
By running the following script, the font color of the Email is changed:
{code
"
tell application "Mail"
set msg to make new outgoing message with properties {visible:true, subject:"this email contains a wrong body font color"}
set content of msg to "this text color will be modified"
tell msg to make new attachment with properties {file name:POSIX file "/Users/anyUserName/anyFile.pdf" as alias}
activate
msg
end tell
"
I think this is a bug. The text color should not be changed. If the email is opened in another Email client in light mode, the text is white and the user cannot see it.
It there is no attachment, there is no problem.
What do you think?
MacBook Pro 13″, macOS 11.1