Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-25 Thread Mark Mayberry
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

Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-25 Thread Kaveh Bazargan
Well done Mark for persevering. Word was indeed a step backwards and it continues to impede progress of mankind. Did you ever use Qued/M from Nisus? it was a great product with a built in programming language too. And Nisus was wonderful as you could do complex searches and with styles as part of

Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-24 Thread Christopher Stone
> On May 24, 2023, at 07:16, Mark Mayberry wrote: > > However, I cannot figure out which Text Factory command is the equivalent of > simply pressing BBEdit Text (Menu) >> Remove Line Breaks. Hey Mark, Surprisingly there isn't one... You have to roll-your-own via a RegEx, AppleScript-filter,

Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-24 Thread Mark Mayberry
Dear Rich, Thank you so much for the assistance. With some trial and error, I was able to implement your advice, and now the Text Factory (which performs hundreds of changes via the GREP commands and the CANONIZE command) can be applied to any open document window by pressing the assigned

Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-24 Thread Rich Siegel
On 24 May 2023, at 17:06, Mark Mayberry wrote: > 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? Place it in BBEdit's "Text Filters" folder, which you can get to by choosing "Text Filters" from the

Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-24 Thread Neil Faiman
> On May 24, 2023, at 8:16 AM, Mark Mayberry 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? I can’t