Replace
by searching the selected text, and then collectively replaced with the clipboard of string.

Script key: by searching the selected text, and then collectively replaced with the clipboard of string.

Posted by @feelingplace

Install

Details

Label Replace
Voice Over by searching the selected text, and then collectively replaced with the clipboard of string.
Script
var targetText = getClipboard();
var searchText = getSelectedText();
var text = getText();
var s = new RegExp(searchText,"mig");
var y = targetText;
var subText = text.replace(s,y);
setText(subText);

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus