How to export multiple emails to PDF with the date of receipt in the name ?
Hi everyone,
From Mail, I would like to export my thousand of emails as PDF, rename them with the date of receipt and the subject. I’m looking for this format [YYYY-MM-DD_Subject].
I tried to find a way with Automator.
First I exported my old mails to PDF then I used the action « rename finder items ».
The problem, Automator will use the date when I created the PDF so the date of today and not the date of receipt. I didn’t find any action to rename an email before exporting it.
So I need an AppleScript in Automator or Mail to fix this problem.
It seems like the best way is to add a new rule in Mail and to run an Applescript.
I found an interesting article but this Applescript will only save the email attachments :
http://www.macosxtips.co.uk/index_files/automatically-save-mail-attachments-using-applescript.php
I’m not the only one looking for an Applescript recently :
https://stackoverflow.com/questions/60921232/applescript-to-save-email-as-pdf
I don’t know how to write an AppleScript, if you can help me, I will be very grateful.
Thank you in advance for your answers.
MacBook