Jump to content
JMichaelTX

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

Recommended Posts

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.

 

Edited by JMichaelTX
Change link to script to my GitHub Gist

Share this post


Link to post

Thanks...this was just what I was looking for in trying to get a script to put an link inside of a note on OSX. Thanks again!

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...