Press Button Sometimes Needs to Be Triggered Multiple Times Before It Works Solution Suggestions?

Hello all!

I have a macro that uses the Press Button action.

I use it in Mail to press this:

Screen Shot 2022-01-10 at 4.07.40 PM

When I trigger it, sometimes it works properly as soon as I trigger it.

Sometimes, I have to trigger it twice (or even three times) before the button is pressed.

Any ideas on why this is happening?

Or how I can get it to reliably trigger the first time?

Thanks!

No idea, unless it isn't enabled right away. You could always try Click at Found Image, but I don't know if it'll help or not.

Howdy, if possible, post the macro itself so we can take a look at it and see what might be going wrong. As one of the moderators likes to say, "If we're not testing we're guessing, and guessing often wastes people's valuable time". :laughing: If you need help on how to post the macro, just let us know and we can walk you through it.

If you haven’t had the opportunity to read this tutorial, I highly recommend it. It will help you get the most help for your question.

Tip: How Do I Get The Best Answer in the Shortest Time?

That being said: you could try using a Pause until button exists action as seen in the screenshot below. Like @DanThomas said, the button might not be enabled quick enough for the Press Button action to work properly.

-Chris

Here you go:

Mail—Load Images.kmmacros (2.0 KB)
image

Hey Jim,

I'd experiment with AppleScript UI-Scripting.

-Chris