Jump to content

SCRIPT: Create & Paste Rich Text Hyperlink for any URL Protocol

Recommended Posts

  • Level 5*
I have written an AppleScript to create & paste a hyperlink using any protocol into Evernote.

See SCRIPT: Create & Paste Rich Text Hyperlink for any URL Protocol  Ver 1.0.1
This script is now maintained in my GitHub Gist:  https://gist.github.com/JMichaelTX

This script was created primarily for Evernote Mac users who need to create a hyperlink for non-standard protocols.

  • EN Mac only allows "http://" and "file://", while the Mac OSX will support any URL Scheme/Protocol that has a supporting/responding app installed.
  • Note that this script creates the hyperlink that is stored in EN Mac Note (or any other rich text app), even if no app has been installed to support the protocol.
  • This is the first version, and I have given it only limited testing under Yosemite 10.10.5.
  • Although I'm reusing a lot of existing code, there could be, and probably are, some bugs.  So proceed carefully, and if you find any bugs please post here, or PM me.
  • It should work very much like the built-in "Add Link" (CMD-K) function.
  • Just select the text you want to add a link to, and run the script.  I use FastScripts to assign a shortcut key.
  • The one downside is that when the created link is pasted back into your Note it will overwrite the formatting of the selected text.
  • But at the top of the script you can set the font & size you prefer.  Default is Verdana 14pt.
  • Installation and usage instructions are in the header comments of the script.
  • If you decide to try the script, please let me know how it goes, and if you find any bugs, or have any suggestions for improvements.


Link to comment
  • 8 months later...


This topic is now archived and is closed to further replies.

  • Create New...