I am completely newbie in Applescript...
In Apple Mail, you can save an email as a text file : File > Save As... > Format "Plain Text"
- Is it possible to automate that using an applescript ?
- Would it be possible to use applescript to save the mail (in txt "format") in the clipboard rather that as a txt file ?
Many thanks.
The Mail.app doesn't export selected message to TXT programatically. You can use GUI scripting, but GUI scripting is bad solution in this case. Exists other way, described here.
The script assumes the message is selected in the Mail.app and creates text file on the desktop, but you can indicate other folder. .
You can save message (in txt "format") in the clipboard as well. Simply: