Create clickable link in Note app?

I have this macro where I am able to create a new note from a URL (thanks to @noisneil for an old macro I now adapted for this particular scenario).
Now I would like to make the URL clickable automatically, if possible?

Right now I get this:

image

But I would like it to be this:

image

I tried a few options based on this page, trying to adapt it to Notes, but it didn't seem to work:

Save Website as Note.kmmacros (19 KB)

I have a macro for doing similar to what you seem to want. Note I'm on an older Mac with an older OS, so there may be some changes necessary regarding the precise methods I use and the pauses I require.
image

1 Like

Try explicitly including the link in the HTML, rather than relying on the data detector to pick it up:

Save Website as Note v2.kmmacros (19.1 KB)

Summary

Tested on Ventura.

Only change to your script was adding the link tag and a second use of the noteText variable, plus moving the "cast to Unicode" to the beginning of that bit so we only have to do it once.

3 Likes

Thank you for the suggestion.
Unfortunately, I would like something that runs in the background, otherwise it would be even faster to just have the original AppleScript open the note when it creates it and just press SPACE (or Enter).
My goal is to just be in Safari, hit the shortcut, and let it do it in the background to avoid me stopping what I'm doing.

Worked like a charm!!! You're the best! Thanks! :metal: