Yes, but I hate the AirMail 3 scripting model. It makes very hard something that is very easy with every other email app I know.
So, AFTER you reply to the inbound email (your customer's email), run this script to get the sender's name:
tell application "System Events"
tell application process "Airmail 3" -- "Airmail Beta" in my case
tell window 1
tell scroll area 1
tell text field 1
set toRecipStr to (its value of item 1 of static text)
end tell
end tell
end tell
end tell
end tell
set AppleScript's text item delimiters to {" <", ">"}
set oToRecip to text items of toRecipStr
tell oToRecip
set toNameStr to item 1
set toAddressStr to item 2
end tell
return toNameStr
Now, let's put that in nice KM Macro.
Start by selecting the inbound email you want to reply to.
Please let us know if this works for you.
MACRO: Reply to AirMail 3 EMail with Custom Message [Example]
#### DOWNLOAD:
<a class="attachment" href="/uploads/default/original/3X/2/6/262e0a5042fcfeae977c4c69bab663be9967da65.kmmacros">Reply to AirMail 3 EMail with Custom Message [Example].kmmacros</a> (6.2 KB)
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**
---
### ReleaseNotes
Macro/Script Author: @JMichaelTX
**HOW TO USE:**
1. Select the Inbound EMail in AirMail that you wish to reply to.
2. Trigger this macro
**SETUP:**
* Confirm, or reset, the "Select Reply..." Menu to ensure it references your Airmail app.
(I was using Airmail Beta).
* Adjust the "Insert Text" as desired for pasting into the Airmail reply.
**REFERENCE:**
This macro built in response to this topic/post:
Topic Title: Insert Airmail receiver's name
URL: https://forum.keyboardmaestro.com/t/insert-airmail-receivers-name/10424?u=jmichaeltx
Date: 2018-05-28
Author: retroriff
---
![image|529x1087](upload://8wZHdFyVQg1f7X38mvB6K8LSzZP.jpg)