@PDF Choose PDF Menu Item in Print Dialog (All Browsers)



Macro built in response to this request:
Select Item in Drop Down Menu in Print Dialog Box

Changes in Ver 2.0

  • Greatly simplified macro, taking advantage of the technique showed here by @peternlewis. This removes the need for a custom script.
  • Added Prompt to provide for user selection of available PDF Menu Items
  • Added support for all browsers (that use the standard Print menu)

Example Output


MACRO:   @PDF Choose PDF Menu Item in Print Dialog (All Browsers) [Example]

~~~ VER: 2.0    2017-01-02 ~~~


@PDF Choose PDF Menu Item in Print Dialog (All Browsers) [Example].kmmacros (13 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.


Author.@JMichaelTX (based on a script by @ccstone)


  • ** Choose/Click PDF Menu Item on Print Dialog**


  1. Move this macro to a Group that is active for Browsers
  2. Assign a Trigger of your choice.
  3. CHANGE the magenta colored Action
    "SET List of PDF Menu Items for Prompt"
    to match the list of available items on your Mac.


  1. Activate Browser (Safari or Google Chrome)
  2. Trigger this macro


This macro built in response to:
Select Item in Drop Down Menu in Print Dialog Box

TAGS: @PDF @UI @Browsers @Chrome @Safari @AppleScript

• Any Action in magenta color is designed to be changed by end-user
• This macro uses Google Search and Google Chrome, but can be easily changed

• To facilitate the reading, customizing, and maintenance of this macro,
key Actions are colored as follows:
• GREEN -- Key Comments designed to highlight main sections of macro
• MAGENTA -- Actions designed to be customized by user
• YELLOW -- Primary Actions (usually the main purpose of the macro)
• ORANGE -- Actions that permanently destroy Varibles or Clipboards

(1) Keyboard Maestro Ver 7.3+
(2) Yosemite (10.10.5)+


Select Item in Drop Down Menu in Print Dialog Box
Macro to print to PDF Xpert
Select Item in Drop Down Menu in Print Dialog Box
How Do I Download (Print Web Page to PDF) and Email PDF?
Macro to print to PDF Xpert

Just updated the Macro to Ver 2.0.


Please excuse my English @JMichaelTX is not good. I’ve created with Shortcus this palette with print commands. Without Applescript etc.

The palette can be accessed in any program with a touch gesture (BetterTouch Tool) on the trackpad. I have made a small video here.
A tutorial will follow the next days.

Greetings from Germany :slight_smile:


Sounds good.
Please post your tool/macro/etc in a new topic.


To make this macro work on your Mac, you will need to make the change indicated in #3 of the Macro Setup section.


Change the Menu Items in this KM Variable:

To the Menu Items shown in your PDF Button Menu:


Hi. I know this is an old thread, but I can't seem to find this apple script mentioned.
Am I missing something?


I don't know what AppleScript you are referring to. My macro does NOT use AppleScript.


It's weird, a few days ago the top of this post that shows the original macro wasn't there, so I've got to be mistaken - appologies! I also see that there was a reference to a macro (which i could not find until now) and not a script. Thanks for clearing.