Is there a way to create a macro to activate download message in gmail?

I did not find the answer neither in the gmail forum nor in this forum

The following does not work:

  • in both safari and chrome, clicking on URL Link using xpath does not work to trigger the More context menu
  • I tried with UI browser, but it's too difficult to interpret
  • click at found image More
  • press button More (because the flyover name of More More is More)

This is the AppleScript generated by UI Browser and which does not work

activate application "Safari"
tell application "System Events"
tell process "Safari"

click pop up button 1 of group 2 of group 1 of list 1 of group 14 of UI element 1 of scroll area 1 of group 1 of group 1 of tab group 1 of splitter group 1 of window "Inbox (18) - - Gmail"  of application process "Safari"

end tell
end tell

Note that once I trigger the more context menu, it is easy. I can simply type the key ↓ 10 times to trigger Download Message

thanks in advance for your time and help

Hi @ronald,
I can certainly get the click at found image to work without a problem.

Here's the macro:
Test Gmal Click.kmmacros (9.0 KB)

KM 0 2022-07-01_15-16-32

Note that the image I use is this:
KM 1 2022-07-01_15-17-53

to distinguish it from the "More" button in Gmail's top (horizontal) toolbar.

You may also have to change the "main screen" and "rightmost" options I've used

BTW, I use Safari..

1 Like

thanks very much !!

this is the image of the 3 vertical dots. Do you cut out the reply part ?


No - I didn’t cut anything out.

If GMail in your browser has that arrangement, then use that image instead - but you may have to increase the coordinate value from 25 to maybe 35, but that’s something you’ll have to determine by trial and error.

1 Like

WOW !!
Absolutely brilliant. Works perfectly and exactly at 35 ! I am using your post to write myself a lesson about the subtleties of click at found image. I learned a lot. thank you so much !

1 Like

Glad to hear it worked! I just hope you were able to complete the rest of the macro!

1 Like

yes, no problem. In a primitive way as per below to click on download message.
Usually in context menus, I would use insert text "download messages" by typing, but in the case of gmail many letters are hotkeys, so any insert text by typing triggers a myriad of commands


1 Like


1 Like