October 21, 2016, 6:31pm
Depite being a novice I successfuly created some macros in order to search and replace certain characters and special characters in documents opened in TextWrangler.
But now I got stuck. When I insert the text containing multiple lines, the macro is not executed. The text is not replaced by a comma + space.
I am attaching both the screenshot of the actions that should be performed, and the macro itself. Where did I make a mistake? I would appreciate any helpful suggestion.
Test.kmmacros (4.6 KB)
October 21, 2016, 9:13pm
The string in the red action in your macro (Insert Text) contains a linbreak. If you insert the text
by typing that line break will literally be typed as Return. That is, it presses the default button (the blue Next button) of the Find window.
So, change “Insert text by typing” to “Insert text by pasting” and see if it works.
October 22, 2016, 8:08am
Thank you, Tom, that is the solution.
October 22, 2016, 11:09am
You’re welcome. If it was the solution you could click the Solution checkbox of the post with the solution.
October 22, 2016, 6:09pm
Am I right having the feeling that
text by typing is executed faster than text by pasting?
Generally speaking, pasting is much faster than typing, assuming you’re talking more than one character.
Actually, it is probably more than a few characters - it probably crosses over around 5 characters, although it is highly application and Mac dependent.
See the wiki FAQ for more discussion on when to use which.