Skip to content

Instantly share code, notes, and snippets.

@heesoo
Created April 11, 2019 05:25
Show Gist options
  • Save heesoo/2cfdf55045c1d8d235576865f507bb89 to your computer and use it in GitHub Desktop.
Save heesoo/2cfdf55045c1d8d235576865f507bb89 to your computer and use it in GitHub Desktop.
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