Capture url from browse and paste between < and >

I am migrating snippets from TextExpander to KM. A frequent action I use is to copy the URL of the webpage's I am viewing from Safari's search/address box and paste it between < and >.

In TextExpander I simply have "<(Clipboard)>". Is there a simple way of emulating that in KM?

1 Like

I'm not absolutely sure of your exact use-case, but this should get you going:

Download Macro(s): Test URL Snippet.kmmacros (1.8 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 10.15.7
  • Keyboard Maestro v10.2

This macro installs into a macro group call "Test" so move it somewhere you'd prefer and don't forget to enable the macro and change the hot key if you want.

It places the URL into the clipboard (with surrounding brackets) and pastes it into whatever document you're editing.

Perfect! Thank you

Here’s a one-action solution if you’re interested.

Download Macro(s): Paste front browser URL inside brackets.kmmacros (1.8 KB)

Macro-Image

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.5.1
  • Keyboard Maestro v10.2