
If you find your yourself performing the same cleaning sequences over and over, you can create one-click macros for processing text. There’s also a handy Strip Clipboard Style option that strips all formatting from the clipboard. Click Fix Clipboard Text and Clean Text does just that-you can then paste the cleaned text into any app. But more convenient is that if you click the Iconize button in the main Clean Text window, you get a tiny palette that floats above other windows. One is to click the Fix Clipboard button in the Clean Text toolbar. As with any service, you can use the Keyboard pane of System Preferences to create a keyboard shortcut for each of these actions.įinally, Clean Text offers a couple ways to use the Fix All cleaner on the contents of the clipboard without having to paste it anywhere first. Alternatively, choosing New Clean Text Window With Selection opens a new Clean Text window and pastes the selected text for cleaning. The second way to use Clean Text is to select text in any application that supports OS X services and then choose Application Name -> Services -> Clean Selection With Clean Text, which uses the Fix All feature on that text, immediately replacing it with the resulting cleaned text. You can also quickly add the date or time to your text, and a Statistics button reveals a separate window that displays basic stats about your text: character, word, space, and line counts estimated reading time word frequency and more.
#Textsoap windows full
Whichever method you use, you can search by full word, ignore case, and even use regular expressions. There’s a traditional find-and-replace dialog, but click the Replace button on the right, and you get a tool for performing up to three find-and-replace tasks in one sweep. The Clean Text window provides a number of other ways to fix your text. There’s also a Quick Clean option that performs the most-common cleanup tasks with one click. The options are organized by type: Fix (reflowing paragraphs, removing quote characters, removing stray characters, converting tabs to multiple spaces and vice versa, and more), Transform (for example, converting simple punctuation to “smart” equivalents and vice versa, sorting lines, removing duplicate lines), Change Case, Convert (changing line-ending encodings, converting period runs to elipses, stripping non-ASCII characters), Reverse (to reverse text at various levels), and Fun (making text flow backward or upside down). You can then click any of the program’s 35 preconfigured modifications, listed to the right, to perform that action on your text. The first is to simply paste your messy text into the Clean Text window.

You can use Clean Text’s features in a few ways.
#Textsoap windows mac
Mac App Store link) does an admirable job for only $10. TextSoap is perhaps the best of text-cleaning utilities for Mac, but if you don’t need all of TextSoap’s features and capabilities, Clean Text ( The clipboard management is mostly done for you.Whether it’s the body of an email message that’s been forwarded too many times, or content you’ve copied from a PDF, sometimes you find yourself with messy content-text that has lots of odd characters and stray line breaks, for example-and you need to make it presentable. With this you can use the clipboard as your data source OR a Keyboard Maestro variable and then paste the result directly from the Execute an AppleScript action. Set cleanedDataStr to cleanText dataStr with "Remove Extra Spaces" However – a better method would be use the cleanText command and operate directly on your data source. It would also be smart to use the CLIPBOARDSEED function and pause until the clipboard changes before trying to paste. Set the AppleScript action to “ignore results”. Setting the clipboard to this destroys the useful work TextSoap has already done. TextSoap's AppleScript command cleanClipboard operates directly on the clipboard and itself returns NO RESULT.

The result of the script is NOT the cleaned clipboard – it is the result of the command.

Hey macro has the AppleScript action explicitly set to send the result to the clipboard. For some reason, KM is clearing out the system clipboard after running the Applescript.
