Very clever.
May I suggest a slight change to speed up your process?
In the example, attached, I added a $Body attribute, and this stamp:
$Body=exportedString(this,$Text);runCommand("echo " +"'" + $Body + "'" + "| pbcopy")
What this does is to parse the export code in $Text and place the result in $Body. Then, then stamp calls the “echo” command with runCommand() and places $Body onto the clipboard. With that you can paste the result directly into your mail message body and avoid the export and post-export cleanup processes.
Mail to Clipboard.tbx (76.7 KB)
I also did some slight adjustments to the export code.