Sí, AppleScript lo hace fácilmente posible!
Aquí hay un AppleScript que puede hacer eso:
tell application "Mail"
set theSenderList to {}
set theMessages to the selected messages of message viewer 0
repeat with aMessage in theMessages
set end of theSenderList to sender of aMessage
end repeat
set the clipboard to (theSenderList as rich text)
beep
end tell
Copiará los remitentes de correo al portapapeles de la siguiente manera: John Doe <[email protected]>
El mismo script sin los nombres:
tell application "Mail"
set theSenderList to {}
set theMessages to the selected messages of message viewer 0
repeat with aMessage in theMessages
set end of theSenderList to (extract address from sender of aMessage)
end repeat
set AppleScript's text item delimiters to " "
set the clipboard to (theSenderList as string)
set AppleScript's text item delimiters to ""
beep
end tell
Solo genera las direcciones con un delimitador space
: [email protected] [email protected]
Para el pitido, solo agrega beep
antes de end tell
(como ya lo hice anteriormente).