Cap
Captialize words

Script key: Captialize words

Posted by @nee

Install

Details

Label Cap
Voice Over Captialize words
Script
// Capitalize words in selection
// agiletortoise's Capitalize script
// expanded to work on ALL CAPS words

var s = getSelectedText();
if (s.length > 0) {
  s = s.toLowerCase()
  s = s.replace(/(?:^|\s)\S/g, function(a){ return a.toUpperCase() }
  );
  setSelectedText(s);
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus