Recorded but Not Running - Sending Email from Daylite

Hi there!

I've been trying to automate the process of sending emails on Mail app, using the contact information from Daylite. I recored the process and created the macro, but it's not working properly when trying to run it.

In Daylite, I have a list of contacts I would like to send the email to and the template. After choosing one of the contacts and the template I'm using, the email composing screen automatically pops up from Mail app.

I recorded the process below:

  • Activate Daylite
  • Click one of the contacts in Daylite
  • Click "Write Letter in Daylite"
  • Choose the template and Click "Merge"
  • A new email window automatically pops up
  • Click and "Send" the email

But when trying to run the macro, Keyboardmaestro doesn't send the email and instead opens the email in my inbox, opens one of the drafts.... or do something else in Mail app randomly.

Does anyone know why this is happening and what I can do to fix it? Thank you!

In order for anyone to diagnose your issue you will need to post/upload your script/macro.

Thank you! I just uploaded.

Thanks. Please upload the macro file as well.

Almost always with recorded events you will need to add appropriate Pause actions between the events. This is particularly important any time there is a change of focus (ie, the current insertion point moves to somewhere else) or especially an animation.

Add a 1 second pause between each action, and then that will also allow you to see where the clicks are and what happens and that will let you see where things go wrong.

When it is all working, you can consider reducing or eliminating some of the pauses to speed up the macro (if desired).

It will be better to use keyboard shortcuts for Daylite and for Mail, instead of clicking and moving mouse.

For Daylite Merge shortcut is Cmd+Alt+M, you can use KM action "Select from Menu" for application.

For Mail send mail shortcut is Cmd+Shift+D, you also can use KM action "Select from Menu" action.

And for choosing template you can use action "Move and click at from the tenet of found image" – this action can recognize objects at your screen.