Mac ONLY - Make a PDF from Whatever, then Email It

WARNING!

  1. Runs on macOS ONLY because it uses AppleScript and shell script.

  2. If you don't have the latest Pages Creator Studio (I use the free version), you'll have to modify the AppleScript in the shortcut.

DESCRIPTION:

This shortcut will export a Safari web page OR a Pages document to PDF OR, if the front-most app is not Safari or Pages, the shortcut will present the screenshot icon and you can click the window you want a screenshot of, and it will capture a PDF of the screenshot.

An email message will open with the PDF attached.

I have the shortcut set so that it appears in the Services menu, and you can also assign a keyboard shortcut to invoke it.

THE SHORTCUT:

https://www.icloud.com/shortcuts/3d32341deb48440798862a4ad391c03b

(I'm not sure how helpful this is to you wild shortcut people, but I thought I'd post it just in case it’s what someone is looking for.)

SAMPLE OUTPUT:

MY USE CASE:

I made this shortcut for my baby child (who is @Stephen Robles’ age! 😂). Her use case for this is: she’s a teacher, and she likes to use her home MacBook Air to research things, but then print that research using the school printers. She's not allowed to join her MacBook Air to the school domain for printing, so this shortcut sends a printable document of what she researched on her MacBook Air from her home email to her school email.

THE LOGIC:

The shortcut captures the info, then saves it as a PDF to the Downloads folder. The file is called TOPRINT.PDF. (The shortcut overwrites any existing file with that name.)

Then it pops open an email message with that PDF attached.

MODIFICATIONS:

You can supply an email address in the shortcut (see the comment in the shortcut), or you can just fill in the recipient email address each time the message window opens.

You should be able to add to the AppleScript to handle Numbers, Keynote, etc.

SHORTCUT STEPS: