Wednesday, May 18, 2022
  • Index
  •  » Code Exchange
  •  » SCRIPT: Create & Paste Rich Text Hyperlink for any URL Protocol

#1 2015-11-13 02:12:29 am

JMichaelTX
Member
From:: Houston, TX (The Woodlands)
Registered: 2014-07-12
Posts: 142

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

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

The below 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 released version, so there could still be some bugs.  If you find any, please report them here.
It was developed and tested in Yosemite (10.10.5).

If any of you Applescript gurus have any suggestions for improvement, please post.  I'm always looking for improvements and better ways of doing things.  I appreciate all ideas.

EDIT:  Revised on Mon, Nov 16, 2015 -- Ver 1.0.1
-- remove date variable not needed.

EDIT:  2017-10-31  14:24 GMT-0500

The original script block I had below has become corrupted somehow.
IAC, I am now maintaining this script in my GitHub Gist:
Create Rich Text Hyperlink with Custom Protocol from Selected Text

Last edited by JMichaelTX (2017-10-31 01:25:49 pm)


2019 iMac-27 512GB SSD, 3.6Ghz i9 CPU, 40GB RAM
macOS 10.14.6 (Mojave)

Offline

 

#2 2015-11-16 02:30:23 am

JMichaelTX
Member
From:: Houston, TX (The Woodlands)
Registered: 2014-07-12
Posts: 142

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

Updated above script to Ver 1.0.1 on Mon, Nov 16, 2015 to removed unneeded date variable causing issues for non-US users.


2019 iMac-27 512GB SSD, 3.6Ghz i9 CPU, 40GB RAM
macOS 10.14.6 (Mojave)

Offline

 
  • Index
  •  » Code Exchange
  •  » SCRIPT: Create & Paste Rich Text Hyperlink for any URL Protocol

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)