MacOS – Set “Load remote content in messages” per sender

applescriptmacosmail-rulesmail.app

In the Mail setting (under Viewing) tab, there is a option Load remote content in messages which I unchecked, so for each email that contains remote content, I need to click the Load remote content button.

Is there anyway of a setting (probably not) or plugin that does this automatically for senders you would approve?

Best Answer

The only (ugly) solution to date seems to be:

tell application "System Events"
    click at {x, y}
end tell

— where x and y are coordinates of the mouse over the button to simulate a click (You can easily find these coordinates by doing a screenshot, i.e. cmd+shift+4)

Note: This will only work for the first message in a conversation since the button will be at the right place.

Tip: Although a dirty workaround, I accept this compromise as I make it more user-friendly by launching the script via a three-finger click through BTT.