Created
April 11, 2019 05:25
-
-
Save heesoo/2cfdf55045c1d8d235576865f507bb89 to your computer and use it in GitHub Desktop.
Load Once on MailMate - Selective Image Blocking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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