Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Load Once on MailMate - Selective Image Blocking
-- version 2018-04-20_01
-- by https://heesoo.org
tell application "System Events"
tell process "MailMate"
-- For View Layout Thread Arcs, Three Panes & Widescreen
try
set loadImagesButtonRef to a reference to button "Load Once" of group 2 of splitter group 1 of splitter group 1 of window 1
end try
-- Case for Search was activated (by clicking or by search box)
if not (loadImagesButtonRef exists) then
try
set loadImagesButtonRef to a reference to button "Load Once" of group 4 of splitter group 1 of splitter group 1 of window 1
end try
end if
if not (loadImagesButtonRef exists) then return beep 1
-- Click "Load Once"
click loadImagesButtonRef
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.