Save Apple Mail And Attachments As PDF

Job ID: 30945168

Budget: $30 – $250 CAD

I'm Looking for a script or to save/print Apple mail and attachment to pdf

I was previously using the attached AppleScript with Mojave but stopped working when upgraded macOS Big Sur version 11.5. I'm searching for someone who can fix and clean up this script or create a new one altogether.

The following is what I would like the script to do:

1: Prompts and allows the user to select one or more Apple Mail email messages from within Mail.

2: Prompts and allows the user to select a save-to folder.

3: For each message, saves it as a PDF file in the save-to folder, using the following naming convention for the PDF file:

"YYYY MM DD HH MM from [FIRSTNAME LASTNAME] - SUBJECT",

"YYYY MM DD HH MM to [FIRSTNAME LASTNAME] - SUBJECT",

where, in the email date-sent stamp (if I am the sender), or, in the date-received stamp (if I am the recipient):

YYYY = the year
MM = the two-digit month
DD = the two-digit day
HH = the two-digit hour (in 24-hour time)
MM = the two-digit minute
FIRSTNAME is the email sender's first name for email that I receive (or is the email recipient's first name for email that I send)
LASTNAME is the email sender's last name for email that I receive (or is the email recipient's first name for email that I send)
SUBJECT = the email's subject line

For example: 2015 01 11 1632 From [Jill Nicole] - Status Of Payroll Updates.pdf
For example: 2015-01-11 1633 To [Carol Davis] - RE Status Of Payroll Updates.pdf (Colon omitted after "RE".)

4. For each attachment to the message, saves it as a PDF file in a folder in the same directory using the same naming convention as the email message
Related categories: Mac OS Applescript Scripting