Estoy un poco confundido en cuanto a exactamente lo que usted está tratando de lograr. Esto no es una solución exacta a su pregunta, pero tal vez este código siguiente te ayudará a poner en el camino correcto.
La primera parte de este código siguiente con el "Correo" comandos de tomar el mensaje seleccionado en el Correo.aplicación, y guardar todos los archivos adjuntos de correo electrónico en el mensaje a tu escritorio.
La segunda parte de este código siguiente, con el "Buscador" de comandos, se lea el contenido de cualquier .archivos txt en la lista de los archivos almacenados en savedFileList
y guardar esa información a la variable theContent
set saveFilePath to POSIX path of (path to desktop)
set savedFileList to {}
tell application "Mail"
set theCount to every mail attachment of item 1 of (get selection)
repeat with i from 1 to count of theCount
try -- handles if "downloaded of (get mail attachment id theID of item 1 of (get selection))" is false
set thisItem to item i of theCount
set theID to id of thisItem
set theFile to mail attachment id theID of item 1 of (get selection)
set isDownloaded to downloaded of (get mail attachment id theID of item 1 of (get selection))
set theName to name of theFile
save theFile in POSIX file (saveFilePath & theName)
set end of savedFileList to (saveFilePath & theName) as POSIX file as alias
end try
end repeat
end tell
set nameExtensions to {"txt"}
tell application "Finder"
repeat with j from 1 to count of savedFileList
set thisItem2 to item j of savedFileList
if name extension of thisItem2 is in nameExtensions then
set theContent to read thisItem2
end if
end repeat
end tell
En este punto usted debería ser capaz de enviar archivos reales, o el contenido de archivos txt que usted haya recibido en el mensaje seleccionado en "el Correo.la aplicación". (Como toda la información ha sido almacenada en diferentes variables en el código... Para que puedas elegir y actuar)