Wednesday, December 13, 2017
  • Index
  •  » Code Exchange
  •  » SCRIPT: Create & Paste Rich Text Hyperlink for any URL Protocol

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

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

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 02:25:49 pm)


iMac-27 Late 2015 Retina 5K Screen (& others)
macOS 10.11.6 (El Capitan)

Offline

 

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

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

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.


iMac-27 Late 2015 Retina 5K Screen (& others)
macOS 10.11.6 (El Capitan)

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)