• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
export multiple emails as PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

export multiple emails as PDF


  • Subject: export multiple emails as PDF
  • From: iKel via AppleScript-Users <email@hidden>
  • Date: Tue, 23 Aug 2022 11:17:58 -0500

Hello!
        I am trying to automate some of my email processes. I am sure I can do
some of what I want to do with Smart Folders but does anyone have any good
scripts for email? The main thing right now I am wanting to do is to select or
retrieve multiple emails and export as PDF and drop it in a folder or maybe a
note app like Notion. Is there a way to convert multiple emails to PDF? I have
a working a script but at the moment I need to figure out how to grab a
specific sender and perhaps loop over all the emails by that sender and then
export as a PDF. I am not sure if I am even heading in the right direction. If
anyone has better solutions feel free to provide them! I appreciate it!

tell application "Mail"
        activate
        —iterate over items within the mailbox
        set msgs to item 1 of (get every message of mailbox "INBOX" of account
"Google" whose sender contains "")
        tell application "System Events"
                tell application process "Mail"
                        repeat with msg in msgs
                                -- or save as a link
                                click menu item "Export as PDF…" of menu "File"
of menu bar 1
                                --place in folder or note app
                        end repeat
                end tell
        end tell
end tell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: export multiple emails as PDF
      • From: Jeremy Roussak via AppleScript-Users <email@hidden>
    • Re: export multiple emails as PDF
      • From: Deivy Petrescu via AppleScript-Users <email@hidden>
  • Prev by Date: Re: Send a message between computers
  • Next by Date: Re: export multiple emails as PDF
  • Previous by thread: Re: Send a message between computers
  • Next by thread: Re: export multiple emails as PDF
  • Index(es):
    • Date
    • Thread