Palette to select websites

I am trying to create a macro that allows me to select a website from a palette of choices.

The palette will have a list of links to different websites.
Ideally, the list would include a short description of the site and an active link.
Clicking on any of the links would open the default browser and navigate to the site.
The keyboard trigger would toggle the palette on and off.

So far, I've tried using two actions:

Custom Floating HTML prompt
Switch / Case

The code in Custom Floating HTML prompt does present a window choices. Only two at the moment. This is the code.

Select a Website:

The configuration I'm using in the Case / Switch action shown below is not working. When I choose the second option (ChatGPT), the Gemini site opens.

What am I doing wrong? Any help would be appreciated.

ScottC

This is easy to do if you use the Prompt with List action.

Here's an example for you:

Download Macro(s): Test - Select Website.kmmacros (2.7 KB)

Macro-Image

Keyboard Maestro Export

Macro-Notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.
System Information
  • macOS 13.6.1
  • Keyboard Maestro v11.0.2

Running the macro produces a dialog like this that allows you to choose the website to open.

Just put your list of URLs/Sites into the red-coloured variable as shown.

image

2 Likes

Thanks very much. Works just as I wanted and appears simple to add other AI sites.

ScottC

1 Like