Imported from the Apple Support Forums via the Wayback Machine 🔗
I have remote images in HTML e-mails turned off in Mail.app, because most HTML e-mails I get with remote images are spam. But I get some legit e-mails with remote images, always from the same sender. There's no option in Mail.app's Rules to automatically show remote images if the message comes from a specific sender, but I do see an option to run an applescript.
So is there a script for Mail.app that will turn on remote image display for a message?
Imported from the Apple Support Forums via the Wayback Machine 🔗
Use the following one-line script:
*tell application "Mail" to set download html attachments to true*
0
Király·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for the suggestion, but it didn't work! It changed the setting to display remote images in all html messages.
When html remote image display is off, html messages with remote images display with an override button, that will load the images when pressed. I'm looking for a script to press *that button* for just messages from a certain recipient; not change the actual preference for all messages.
0
Pierre L.·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Sorry. I misunderstood your question. Here's a script that should do what you are asking for:
--BEGINNING OF SCRIPT
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
activate
repeat with eachMessage in theMessages
open eachMessage
tell application "System Events" to tell process "Mail"
if button "Load Images" of front window exists then
click button "Load Images" of front window
end if
end tell
end repeat
end tell
end perform mail action with messages
end using terms from
--END OF SCRIPT
Please let me know if anything doesn't work as expected.
0
Király·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Yes! I made a rule to run that script when I receive a message from a specific recipient, and it did exactly what I want! THANKS!