Enc
Encode selected text

Script key: Encode selected text

Posted by epramono

Install

Details

Label Enc
Voice Over Encode selected text
Script
// Script keys run short Javascripts
// For documentation and examples, visit:
// http://help.agiletortoise.com

var input = getSelectedText();
var range = getSelectedRange();
var output = "";

if (input) {
    output = encodeURIComponent (input);
    setSelectedText (output);
    setSelectedRange (range[0], output.length);
} else {
    input = getText();
    output = encodeURIComponent (input);
    setText (output);
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus