

On May 24, 2023, at 8:16 AM, Mark Mayberry <markma...@gmail.com> wrote:BBEdit Text (Menu) >> Remove Line Breaks strips away the line breaks from within the paragraphs and leaves double line breaks at the end of each paragraph.How can I reproduce this specific action using Text Factory?
abcdefghijklmnopqrstuvwx
abc def ghijkl mnopqrstu v w x
Dear Neil,
Thank you so much. Your suggestion to use GREP Search-and-Replace (SnR) commands worked like a charm. I was able several GREP Search and Replace (SnR) to clean up the manuscripts that I must regularly edit.
I know this is a DUMB question, but how do you get a Text Factory to work ONLY on the file that is currently open and visible in BBEdit? I mistakenly applied the Text Factory to all open files before I realized my mistake. To avoid this problem, I specified that the Text Factory ONLY operate on a single saved file. However, means that I must copy the text to be processed to that particular file, and then run the Text Factory.
Again, I have been using BBEdit for several years (since I shifted from Windows to macOS). I have been using the CANONIZE command to clean up imported manuscripts. However, I would like to easily apply this Text Factory (See Attached Screen Capture) to the BBEdit document that is currently visible (without closing or altering any other open BBEdit documents.
Thanks for any input you might share!
Yours,
Mark
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/51E31324-9ED7-4E9D-8D5E-F5361041E0AC%40faiman.org.
On May 24, 2023, at 07:16, Mark Mayberry <markma...@gmail.com> wrote:
However, I cannot figure out which Text Factory command is the equivalent of simply pressing BBEdit Text (Menu) >> Remove Line Breaks.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CA302031-5C5C-4803-B019-34B6459C8A20%40gmail.com.
Dear Chris,
Thanks for the sample AppleScript. I have Sal Soghoian’s AppleScript 1-2-3 book as a reference, but it’s a little hard for me to wrap my head around this “human language” approach. However, I have implemented several short AppleScripts that I use with BetterTouchTool and my Stream Deck. In the mean time, I added the GREP command that Neil suggested, and “Boom!” IT WORKED!
At this point, I have a growing Text Factory that performs a variety of edits on manuscripts that I must edit.
Previously, I had been saving the GREP commands and using them in the Find and Replace window of BBEdit. However, it is much quicker to string them together in one Text Factory.
I appreciate the help!
Yours,
Mark
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/72A11FB2-C6FC-4D56-9431-B5DC03DCEBAE%40gmail.com.