I have a lot of old documents that have unnecessary line breaks. I want to find/replace in TextEdit. It's easy enough to do, but it's a tedious process to do over and over.
Example:
In TextEdit, I copy and paste two hard returns in the FIND field, and replace that with some garbage text (let's say "garbagetext"). Replace all. Then I find all single hard returns and replace with a space. Then I find garbagetext and replace with two hard returns. (The garbagetext stuff is to preserve the paragraph breaks.)
Is that something that I could automate? I have never used Shortcuts and taking a quick look at tutorials, it looks like a bunch of learning that I'd need to do, which I'm happy to do, but I'd like to know that it's something that can be done before I dig in too deeply.
Thanks for any help!
Example:
Code:
I have a lot of really
old text files that have
line breaks like this
to keep the text at a
certain width.
But when I'm trying to
use Speak Screen, the
line breaks mess up
the speech.
In TextEdit, I copy and paste two hard returns in the FIND field, and replace that with some garbage text (let's say "garbagetext"). Replace all. Then I find all single hard returns and replace with a space. Then I find garbagetext and replace with two hard returns. (The garbagetext stuff is to preserve the paragraph breaks.)
Is that something that I could automate? I have never used Shortcuts and taking a quick look at tutorials, it looks like a bunch of learning that I'd need to do, which I'm happy to do, but I'd like to know that it's something that can be done before I dig in too deeply.
Thanks for any help!