Re: Need help simplifying apple script with grep

2023-03-18 Thread Kaveh Bazargan
All sounds good Mathias. I miss AppleScript. I wrote a lot of it to help editing videos. It's just that grep is hard to read as it is!! Perhaps not relevant, but I recently found Text Factory in BBEdit that lets you string lots of greps together... Regards Kaveh On Sat, 18 Mar 2023 at 11:45,

Re: Need help simplifying apple script with grep

2023-03-18 Thread Bruce Van Allen
> On Mar 17, 2023, at 09:29, you wrote: >> Yes, double escapes are needed. As handy as Applescript is, quoting is a >> major pain point. > > > Not if you use Script Debugger. Thanks for the reminder! I use Script Debugger, but hadn’t been using that capability. — Bruce

Re: Need help simplifying apple script with grep

2023-03-18 Thread Christopher Stone
On Mar 17, 2023, at 09:29, Bruce Van Allen wrote: > Yes, double escapes are needed. As handy as Applescript is, quoting is a > major pain point. Not if you use Script Debugger . SD has a “Paste as String Literal” command that automates the double-quoting as

Re: Displaying TSV files

2023-03-18 Thread Neil Faiman
If your goal is, very specifically, to be sure that every line in your file has 17 tabs in it, there is a simple solution. >From the BBEdit Text menu, choose “Process lines containing…”. Choose the “Find lines that … do not contain: option. In the search field, enter ([^\t]*\t){17}

Re: Need help simplifying apple script with grep

2023-03-18 Thread Mathias
Huge thanks Bruce. You guys are insane at grep'ing, sed'ing etc. The answers I've gotten in here are like machine code sometimes. :) Kaveh, the reason I use AppleScript is because I've used it outside BBEdit in the past, so I'm most familiar with that setup. I've gotten solid evidence in here