Is It Possible to Branch on Prompt With List Selection Key?

Hi @svinter. I don't think so. However, you can expand the possibilities by detecting modifier states when the Prompt With List choice is made (using return or by clicking).

Here are the modifiers that can be detected:

  • Control (or Ctrl) ⌃
  • Option (or Alt) ⌥
  • Shift ⇧
  • Command (or Cmd) ⌘
  • Caps Lock ⇪

Here's a simple example:

DOWNLOAD Macro File:
Prompt With List with Modifiers Optionally Pressed.kmmacros (13 KB)
Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.

Macro-image


For a more complex example, see Markdown Link Tool.

1 Like