Exporting a Pages Document as high-quality PDF with Keyboard Maestro

When exporting a Pages document as a PDF, there are three settings for the quality of pictures embedded in the document. Unfortunately, I could not find a way to export a document with the highest setting via a keyboard shortcut. There is a way via AppleScript (https://iworkautomation.com/pages/document-export.html) but unfortunately, it did not work for me. So I bought Keyboard Maestro and after some fiddling, I came up with a solution.

The first macro is responsible for exporting a document and closing it afterwards. As I often have to batch export multiple documents, I open them all and let the second macro (which just repeats the first macro 15 times) do its thing.

It might not be the best way to do this, but it works for me. Maybe it helps some of you too :slight_smile:

Macro 1:
image

Macro 2:
image

I did something similar with Applescript UI scripting for Keynote: