Hi there
Sometimes I want to replace text in various applications via regexes. I wrote a macro using the Search and Replace System Clipboard Using Regular Expression (ignoring case)
and that works fine:
- In the target app I select the text (usually the whole text in an input field, so cmd-A).
- I copy to the clipboard (cmd-C)
- I call the macro. (ctrl-opt-cmd-X)
- I paste the clipboard. (cmd-V)
This is reasonably easy, but I was wondering whether there is a quicker way operating directly on the text selection instead of operating on the clipboard. This would save me the cm-C/cmd-V dance. I searched in the actions for "selection" and looked in the user manual for "text selection" but didn't find anything.
So, is it possible to do a Search and Replace
on the selected/highlighted text?
Thanks for any pointers!