Script key

Posted by @paulstroudmusic

Install

Details

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

var f = ' ';
var r = '-';
var s = getSelectedText();

var re = new RegExp(f, 'g');
var matches = s.match(re);

if(matches) {
  s = s.replace(re, r);
  setSelectedText(s);
}
else {
  alert("\"" + f + "\" not found.");
}

Advanced

Keyboard shortcut Option+Command+-
Hide key Yes

Discussion

comments powered by Disqus