There are two additional Automator actions used to augment custom cleaners. Create and use an Automator workflow within a custom cleaner to makes use of AppleScript, Perl, Python or shell scripts or virtually any other Automator action.
To create an automator workflow:
Launch Automator.
Create a new workflow.
Place "Get TextSoap Engine Text" action at the start of your workflow.
The result of the action returns the current text to from TextSoap.
Add any additional actions to process the text.
Place "Set TextSoap Engine Text" action at the end of your workflow.
This returns the text to TextSoap.
TextSoap recognizes workflows placed in the specified folder (below). Drag the workflow file to the TextSoap application icon or open it with TextSoap. TextSoap prompts you to copy it to the correct location. You can also manually copy it to:
~/Library/Applications Support/TextSoap/Workflows/
Add the Run Automator Workflow action to call the workflow within a Custom Cleaner. Create a custom cleaner with a single action like this:
You can now use AppleScript or any other Automator workflow within a TextSoap custom cleaner.
Automator actions only support plain text. Currently, formatting is lost when you use a workflow to process text.
Workflows that augment a custom cleaner cannot call back into the TextSoap by using either the Clean Text or Clean Text Files Automator actions. These actions are ignored when a workflow is used to extend a custom cleaner.