Re: Old BBEdit versions?

2019-02-07 Thread Christopher Stone
On 02/07/2019, at 05:07, TJ Luoma mailto:luo...@gmail.com>> wrote: > /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister > -kill -r -domain local -domain system -domain user There's nothing wrong with using the command line for this, but my

Re: Can't save project

2019-02-05 Thread Christopher Stone
On 02/05/2019, at 18:50, Barbara Snyder mailto:barb...@signalfx.com>> wrote: > Ok so creating a new project saves it, but then I added files to it. Does it > just keep auto-saving? Hey Barbara, Yes, the project should auto-save as you go along... You do have the full commercial version of

Re: Can't save project

2019-02-05 Thread Christopher Stone
On 02/05/2019, at 17:02, Barbara Snyder mailto:barb...@signalfx.com>> wrote: > ...Then I wanted to save the project, but the option was greyed out. > > So I started over - created a new project, added some files. Save Project is > still greyed out. Hey Barbara, When you create a project you

Re: Pattern matching that will exclude items matching another pattern

2019-02-04 Thread Christopher Stone
On 02/04/2019, at 13:20, Jim Witte mailto:jim.wi...@gmail.com>> wrote: > What I have is a list of words … Hey Jim (and everyone), When requesting help with Regular Expressions and or text-processing please always include sample text for both the search text and the desired result text. These

Re: Faster method of opening Scratchpad with AppleScript

2019-01-24 Thread Christopher Stone
On 01/24/2019, at 09:25, Ben Smith mailto:benpto...@gmail.com>> wrote: > Yep, I had the same thought after I made the post. :-) That method is fast > every time so I'll have to train myself to use hotkeys instead of Alfred. Odd > though. Hey Ben, Actually it's not that odd if I conjecture

Re: Another Applescript problem

2019-01-21 Thread Christopher Stone
On 01/21/2019, at 10:08, Rich Siegel mailto:sie...@barebones.com>> wrote: > With a slight structural change to the script, you could use it in a "Run > AppleScript" step in a text factory. These can be applied to any combination > of files or folders. More on how to do this is in the user

Re: Another Applescript problem

2019-01-20 Thread Christopher Stone
hell-heads is probably: -------- # Auth: Christopher Stone # dCre: 2019/01/20 23:32 # dMod: 2019/01/20 23:37 # Appl: BBEdit, Finder # Task: Process Files in a User Chosen Folder. # Libs: None # Osax: None # Tags: @Applescript, @Script, @BBEdit, @Fi

Re: Another Applescript problem

2019-01-20 Thread Christopher Stone
On 01/19/2019, at 12:05, Dante Majorana mailto:the.d@gmail.com>> wrote: > How can I loop this to a folder of choice? Hey Dante, How do you want to choose this folder? Front Finder window? An Open dialog? A fixed Path? Does the folder have any subfolders in it? Approximately how many

Re: Saved search with shortcut

2019-01-19 Thread Christopher Stone
On 01/19/2019, at 11:44, MJ BLUE mailto:kaposia2...@gmail.com>> wrote: > I tried to create an apple script with this but was unsuccessful. > > I don't want to perform the search, I just want my saved search to come up > with a keystroke instead of having to go into the FIND mode and select the

Re: Want to strip text out of closed captions to send my father who's partially disabled.

2019-01-18 Thread Christopher Stone
5> I'm not using that, since I'm letting BBEdit do the work for me in this case – but I have used that pattern in other cases. -- Take Care, Chris -------- # Auth: Christopher Stone # dCre: 2019/01/18 23:14 # dMod: 2019/01/18 23:14 # Appl:

Re: Delete space at the beginning of line

2019-01-18 Thread Christopher Stone
On 01/18/2019, at 20:02, Cecily Walker mailto:cecily.wal...@gmail.com>> wrote: > When I tried this, I got an error that read: "This pattern cannot be used, > because PCRE reported an error: quantifier does not follow a repeatable item > (109)" Hey Cecily, That's odd. How are you accessing

Re: Another Applescript problem

2019-01-18 Thread Christopher Stone
On 01/18/2019, at 16:57, Dante Majorana mailto:the.d@gmail.com>> wrote: > My goal is to delete the same PARAGRAPHS in a series of TXT files > > The paragraphs I need to delete are always the same > > Beginning from par at line 9, then . line 7 then line 3 Hey Dante, You can do that like

Re: Delete space at the beginning of line

2019-01-18 Thread Christopher Stone
On 01/18/2019, at 14:45, Cecily Walker mailto:cecily.wal...@gmail.com>> wrote: > I'm really struggling with Grep and trying to write a pattern that deletes 3 > spaces at the beginning of each line. Hey Cecily, I tend to write patterns like that this way: ^ {3} OR ^[ ]{3} Surrounding the

Re: How to Create Finder Folders from BBEdit Text List

2019-01-18 Thread Christopher Stone
On 01/16/2019, at 19:03, Dave mailto:dave.live...@gmail.com>> wrote: > Thanks, Chris. I've always used that literal newline inside single quotes in > scripts and the command-line, but people think there's something wrong when > they see that continuation prompt. Hey Dave, The specific point

Re: How to Create Finder Folders from BBEdit Text List

2019-01-16 Thread Christopher Stone
On 01/16/2019, at 08:56, Dave mailto:dave.live...@gmail.com>> wrote: > I have a correction to make. I don't think there's actually any way to escape > the spaces or quote the folder names in list like this, so if you need to use > folder names with spaces (something I avoid, btw) what you need

Re: Inserting a breakpoint above the current line

2019-01-15 Thread Christopher Stone
On 01/15/2019, at 19:25, Venkat mailto:gvenkata1...@gmail.com>> wrote: > Thank you so much! I don't know AppleScript very well, so I can't ask further > questions to understand what exactly you're doing  . Hey Venkat, Here's a commented version that may help. -- Best Regards, Chris

Re: Inserting a breakpoint above the current line

2019-01-15 Thread Christopher Stone
's a little bit tricky but not overly difficult. -- Best Regards, Chris ---- # Auth: Christopher Stone # dCre: 2019/01/15 17:29 # dMod: 2019/01/15 18:30 # Appl: BBEdit # Task: Create Python Breakpoint at the Cursor. # Libs: None # Os

Re: One-liner to replace multiple spaces between words (only words) with one space isn't working

2019-01-14 Thread Christopher Stone
On 01/14/2019, at 12:32, ThePorgie mailto:thepo...@gmail.com>> wrote: > Using the double space leaves two spaces intact after a sentence if desired. Hey There, Nicely done!  Here's another way to write that that makes it easy to read: (?https://www.twitter.com/bbedit> --- You received this

Re: One-liner to replace multiple spaces between words (only words) with one space isn't working

2019-01-13 Thread Christopher Stone
On 01/13/2019, at 03:06, Marek Stepanek mailto:ms...@podiuminternational.org>> wrote: > I did not know \h = horizontal white space. And it is even working with > BBEdit. Is it mentioned in the User Manual BBEdit? Suggesting a little > correction: Hey Marek, Then you'll want to contact

Re: One-liner to replace multiple spaces between words (only words) with one space isn't working

2019-01-13 Thread Christopher Stone
On 01/12/2019, at 19:32, Dj mailto:futurevint...@gmail.com>> wrote: > I'm only trying to change space between words and not carriage returns and > all that. So far I've tried placing this in the scripts folder: > > perl -pe 's/ +/ /g' Hey Dj, The code you have above is the sort of thing that

Re: One-liner to replace multiple spaces between words (only words) with one space isn't working

2019-01-12 Thread Christopher Stone
On 01/12/2019, at 19:32, Dj mailto:futurevint...@gmail.com>> wrote: > I'm only trying to change space between words and not carriage returns and > all that. So far I've tried placing this in the scripts folder: > > perl -pe 's/ +/ /g' Hey Dj, All shell scripts have to have a legitimate

Entable - BBEdit, TextWrangler, Nedit Filter

2019-01-12 Thread Christopher Stone
Hey Folks, I found a useful plug-in for BBEdit called `entable`. It's a plain old Perl script, so it can be used as a text-filter in BBEdit or from the command line. http://entable.s3.amazonaws.com/index.html I've changed the shebang/use block in

Re: Applescript problem inserting COPY NAME and looping it

2019-01-11 Thread Christopher Stone
TEST copies. ---- # Auth: Christopher Stone # dCre: 2019/01/11 15:27 # dMod: 2019/01/11 15:27 # Appl: BBEdit # Task: Prepend Document Name to Document Text. # Libs: None # Osax: None # Tags: @Applescript, @Script, @BBEdit, @Prepend, @Document,

Re: Applescript problem inserting COPY NAME and looping it

2019-01-11 Thread Christopher Stone
On 01/11/2019, at 07:09, Dante Majorana mailto:the.d@gmail.com>> wrote: > I open a series of text files and launch the Applescript Facilities setting > them to record. > However Applescript doesn't record this action when I click on Edit->copy > path->Copy Name > As I need to add the

Re: How to Create Finder Folders from BBEdit Text List

2019-01-11 Thread Christopher Stone
On 01/11/2019, at 01:18, Bill Kochman mailto:wordweaver...@gmail.com>> wrote: > Are you saying that I need to paste in a long list of the folder names in > that variable? If so, do I need to separate that by commas, or spaces, or one > name per line, or what? Hey Bill, See how I've placed the

Re: How to Create Finder Folders from BBEdit Text List

2019-01-09 Thread Christopher Stone
--- # Auth: Christopher Stone # dCre: 2019/01/09 21:50 # dMod: 2019/01/09 21:50 # Appl: Finder # Task: Create a new folder-set on the Desktop from a Name List. # Libs: None # Osax: None # Tags: @Applescript, @Script, @Finder, @Create, @Folder-set, @Set, @Desk

Re: BBEdit/TextWrangler markers lost when files moved

2019-01-08 Thread Christopher Stone
On 01/08/2019, at 02:02, Tibor Páli mailto:palitiborlas...@gmail.com>> wrote: > However, the markers are different (not syncing) in the same document on the > two computers. Adding, changing, deleting markers in one computer is not > replicated in the other. > Maybe the markers do not belong

Re: Noob trying to improve on these grep / expressions

2019-01-05 Thread Christopher Stone
On 01/04/2019, at 20:59, Dj mailto:futurevint...@gmail.com>> wrote: > The last couple things I'm curious about before doing a deeper dive... To > remove all text between paranthesis (and also the parenthesis), what would > that expression be? Hey Dj, Something like this: \([^)]+\) 1.

Re: Noob trying to improve on these grep / expressions

2019-01-05 Thread Christopher Stone
RegExRX (see appended). -- Best Regards, Chris Begin forwarded message: From: Kem Tekinay Subject: Re: [MTC WEBSITE] Software Support Date: Jan 04, 2019 at 22:36:46 CST To: Christopher Stone Me too! :-) Yes, I rely on it too, so I’ll be doing that before it actually makes a difference. Thank

Re: Noob trying to improve on these grep / expressions

2019-01-04 Thread Christopher Stone
On 01/04/2019, at 13:44, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > RegExRX seems to have gone dormant five years ago. > > Do you have any news/updates regarding newer/better approaches, if any? Hey Alfredo, Crud. I didn't realize it was a 32-bit app. You can find it here:

Re: Replace Script w/ Date Conversion

2019-01-04 Thread Christopher Stone
On 01/04/2019, at 09:56, 'Holger Bartel' via BBEdit Talk mailto:bbedit@googlegroups.com>> wrote: > I have a bunch of .yaml files in which I would like to replace/add one value > with a timestamp, which needs to be created from two other fields/values. I > think this needs the help of a

Re: Noob trying to improve on these grep / expressions

2019-01-03 Thread Christopher Stone
On 01/01/2019, at 13:47, Dj mailto:futurevint...@gmail.com>> wrote: > From what I see with your results, I think this is getting me to the place of > "good enough" for this problem. Hey Dj, Very good. > So the embarrasing part, I've tried to take your text and make a shell script > to place

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Christopher Stone
On 12/31/2018, at 13:54, Dj mailto:futurevint...@gmail.com>> wrote: > Mike, that makes a lot more sense now. I looked at page for the Module and it > seems it's run from terminal and OSX has perl pre-installed? Hey Dj, BBEdit can run shell scripts as Text-Filters, and they do not need to be

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Christopher Stone
On 12/31/2018, at 13:49, Dj mailto:futurevint...@gmail.com>> wrote: > can I ask where you ran that expression in BBedit? Just menu ---> search > > find. Hey Dj, Beginning around v11.0 BBEdit has had an “Extract” button in the Find dialog. Find: \b\w[^.!]+?\? Replace: Nothing Using

Re: Noob trying to improve on these grep / expressions

2018-12-30 Thread Christopher Stone
On 12/29/2018, at 11:53, Dj mailto:futurevint...@gmail.com>> wrote: > Hello, I'm trying to extract every sentence that ends with a question from > some text files. I'm using the old text wrangler -> process lines -> copy to > new document, but I'm still getting a lot of sentences that don't

Re: Using grep to do a automatic numerotation

2018-12-22 Thread Christopher Stone
On 12/21/2018, at 14:16, Alex gat mailto:alex.garacot...@gmail.com>> wrote: > I have that very long text file, made of several paragraphs. Each paragraphs > is separated by a double carriage return (\n\n). > > What I'd like to do is to replace each \n\n by a number that automatically > increase

Re: GREP help: dig into the report of the cash register

2018-12-07 Thread Christopher Stone
On 12/06/2018, at 13:44, Christopher Stone mailto:listmeis...@suddenlink.net>> wrote: > Here's an updated script that produces cleaner output. > From here I would probably turn the output into tab-delimited single lines. Hey Marco, The newest incarnation of the script (appended) pro

Re: GREP help: dig into the report of the cash register

2018-12-06 Thread Christopher Stone
Because from there it's easy to write a macro to extract the data and insert it into your web page one line at a time. -- Best Regards, Chris ---- # Auth: Christopher Stone # dCre: 2018/12/04 16:04 # dMod: 2018/12/06 13:37 # Appl: B

Re: GREP help: dig into the report of the cash register

2018-12-04 Thread Christopher Stone
t data from the tape. If so then we need another pass to get just the values you want. >From there it shouldn't be hard to pop those values into Keyboard Maestro >variables for insertion into your web page. -- Best Regards, Chris --------

Re: What about BBEdit attracts you to the program over others?

2018-11-27 Thread Christopher Stone
On 11/26/2018, at 18:59, Cerulean mailto:ceruleanf...@gmail.com>> wrote: > I am just curious why someone may decide to choose BBEdit over other > programs, what draws does it have that others don't? Hey Cerulean, It's a solid editor with a large tool-set, and it's probably the most

Re: What about BBEdit attracts you to the program over others?

2018-11-27 Thread Christopher Stone
On 11/27/2018, at 08:15, Gauvins mailto:gauvi...@gmail.com>> wrote: > Wrt to critical features... The ability to run Python in the terminal and > color schemes come to mind, but it mischaracterizes my appreciation. Hey Gauvins, Huh? That's very vague. Please be more specific. -- Best

Re: Assign shortcut to ctrl-Move to New Window?

2018-11-27 Thread Christopher Stone
On 11/20/2018, at 21:20, Gauvins mailto:gauvi...@gmail.com>> wrote: > thanks. probably too obvious for my aging brain... :/ Hey Gauvins, When looking for commands in Mac apps always try the search field in the Help Menu. It will find any menu item whether or not it is active. As of v12.5

Re: Assigning BBEdit to be the editor for Xcode

2018-11-10 Thread Christopher Stone
On 11/09/2018, at 11:39, Michael Brian Bentley mailto:mercu...@gmail.com>> wrote: > I'd like to be able to work from BBEdit, keying off of a finder window-like > pane. Just to shut my co-worker up. Am I a bad person to desire this? :) Hey Michael, Read up on Using Projects on page 66 of the

Re: Remove Tooltip over file name

2018-11-10 Thread Christopher Stone
On 11/09/2018, at 12:18, Berny mailto:scouser.be...@gmail.com>> wrote: > Is it possible to turn off the tooltip that pops up when the mouse hovers > over a file name in the "Currently Open Documents" column? Hey Berny, Not from BBEdit as far as I know. But this method probably still works:

Re: Easy way to open .html files in BBEdit vs. browser?

2018-10-28 Thread Christopher Stone
On 10/27/2018, at 11:51, Allen Watson mailto:watson.al...@gmail.com>> wrote: > Thanks for the explanation. I had overlooked the double-tap settings in > BBEDit’s Preferences. I’m leaving “Instant Send” set to Double Control; I far > too offten double tap Cmd without meaning to. But I did not

Re: Easy way to open .html files in BBEdit vs. browser?

2018-10-28 Thread Christopher Stone
On 10/28/2018, at 02:57, Vlad Ghitulescu mailto:v...@ghitulescu.de>> wrote: > I always wanted to ask: Doesn't Keyboard Maestro does already all what > FastScripts does? Or is it the "Fast"-part that matters (I read once > somewhere that FastScripts holds the compiled scripts in the memory)? Why

Re: bbedit command line tools won't install

2018-10-26 Thread Christopher Stone
On 10/25/2018, at 19:18, Brandon Walter mailto:b...@macfaqulty.com>> wrote: > I'm unable to install the Command Line tools from the app. Hey Brandon, What version of BBEdit? What version of macOS? -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a

Re: Easy way to open .html files in BBEdit vs. browser?

2018-10-26 Thread Christopher Stone
On 10/25/2018, at 17:50, @lbutlr mailto:krem...@kreme.com>> wrote: > I find Typinator does what I need since it allows executing shell scripts. Hey Lewis, I've used Typinator for about 10 years and think it's the best text-expansion tool available for the Mac. Typinator

Re: Easy way to open .html files in BBEdit vs. browser?

2018-10-25 Thread Christopher Stone
On 10/22/2018, at 19:34, Jean-Christophe Helary mailto:brandel...@gmail.com>> wrote: > And Chris will probably jump in to talk about Fastscript or some other > wondermagical solution he has Hey David, LaunchBar is my go-to utility for this

Re: Auto-select search selected when text is selected

2018-10-25 Thread Christopher Stone
On 10/20/2018, at 11:31, John Springer mailto:jory...@gmail.com>> wrote: > Just thought maybe I could do it with AppleScript, but apparently BBEdit has > no entry in the script dictionary for "search in selection". It's the only > option not there. :-( Hey John, You can search/replace in

Re: Applescript to replace selected text only using grep pattern

2018-10-19 Thread Christopher Stone
On 10/14/2018, at 23:04, Christian Boyce mailto:mac...@christianboyce.com>> wrote: > I know you already have an answer but I think it's good to know how to > restrict an AppleScript "replace" in BBEdit to the selected text. I had this > problem myself once. > > This is how I'd do it (and it

Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread Christopher Stone
On 10/19/2018, at 17:14, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > P.S. > Your previous suggestion had a slightly undesired side effect: It erased all > of my backups, locally and in the Cloud. Other than this minor inconvenience, > it was a good exercise ;-) Hey Alfredo,

Re: Way to stop minimised windows appearing on app focus?

2018-10-19 Thread Christopher Stone
On 10/17/2018, at 13:18, Bruce Van Allen mailto:b...@cruzio.com>> wrote: > I think that might be an OS thing, not unique to BBEdit. I tried two other > apps and they both did the same thing. Bruce is right. This even happens in the Finder. -- Best Regards, Chris -- This is the BBEdit Talk

Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread Christopher Stone
On 10/13/2018, at 12:26, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > Did you mean to use the same name for both patterns? Hey Alfredo, No. That was a goof up. I also misplaced a character. Try this: ^(?>(?:(?!ostracized_string).))*wanted_string.*$ -- Best Regards, Chris --

Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-13 Thread Christopher Stone
On 10/12/2018, at 16:03, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > I would like to craft an expression to find lines that contain pattern_2 NOT > preceded by pattern_1 > (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2). Hey Alfredo, It's a best-practice to

Re: I believe that SOME non-greedy quantifier(s) SOMEWHERE might help

2018-10-05 Thread Christopher Stone
On 10/04/2018, at 10:09, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > After doing lots of exercises using your example, this greedy vs. non-greedy > challenge WILL be conquered. Once this concept is clear, everything becomes > clear. Hey Alfredo, Did you wrap your head around the

Re: wildcard search question

2018-09-27 Thread Christopher Stone
On 09/27/2018, at 16:18, Limore Ricciardi mailto:lim...@gmail.com>> wrote: > I basically want to replace these two lines with one line, leaving the > variable in tact. > > so it will look like this: Hey Limore, That's easy enough. Find: (item2)\.X-ABRELATEDNAMES;type=pref:(.+)\n\1.+

Re: Organizing Docs in a Notebook App and Editing in BBEdit

2018-09-24 Thread Christopher Stone
On 09/24/2018, at 13:15, Vlad Ghitulescu mailto:v...@ghitulescu.de>> wrote: > I have discovered recently EagleFiler and I use it daily ever since > for archived email messages; > for scanned documents (= PDFs) and > for TXT (and MD and TASKPAPER) documents > and it has a context-menu "Open in

Re: Changed grep engine after update?

2018-09-24 Thread Christopher Stone
On 09/23/2018, at 13:04, Marek Stepanek mailto:ms...@podiuminternational.org>> wrote: > A strange phenomenon happened: > > In my Perl Script the pattern > ... > does not matches Umlauts. For example: Hey Marek, I'm observing something similar. I'd suggest reporting the issue to support. --

Re: Batch search-and-replace

2018-09-11 Thread Christopher Stone
On 09/11/2018, at 12:21, Andrew Brown mailto:li...@c18.org>> wrote: > Hi Chris. version 12.1.5 (410102, 64-bit). Best — A. Hey Andrew, Then you are quite correct. Canonize does not support grep. You might consider making a formal feature request (see the message footer). -- Best Regards,

Re: Batch search-and-replace

2018-09-11 Thread Christopher Stone
On 09/11/2018, at 10:01, Andrew Brown mailto:li...@c18.org>> wrote: > Have I understood correctly that Canonize will not handle grep ? Hey Andrew, What version of BBEdit are you using? -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a feature request

Re: Changing the contents of the new HTML file template?

2018-09-09 Thread Christopher Stone
On 09/09/2018, at 15:59, @lbutlr mailto:krem...@kreme.com>> wrote: > The manual seems short not he directions on how to creat a stationery item, > btw. I saved a BBEdit file in the folder, doesn’t show up. I used the Finder > to mark the file as a stationary pad, doesn’t show up. I removed the

Re: Batch search-and-replace

2018-09-09 Thread Christopher Stone
and folders? Files and folders in the same tree? Here's one example: ---- # Auth: Christopher Stone # dCre: 2014/10/29 07:10 # dMod: 2018/09/09 14:04 # Appl: BBEdit # Task: Find and Replace in Files On-Disk. # Libs: None # Osax:

Re: Is there any way to ask BBEdit to use double-click to select "words" with embedded periods?

2018-09-09 Thread Christopher Stone
On 09/08/2018, at 12:34, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > I’ll study John Gruber’s notes and I’ll implement variatio(n) on his theme(s). Hey Alfredo, You can also use BBEdit find function via AppleScript to get very sophisticated.

Re: Is there any way to ask BBEdit to use double-click to select "words" with embedded periods?

2018-09-08 Thread Christopher Stone
On 09/08/2018, at 08:13, F. Alfredo Rego mailto:f.alfredor...@gmail.com>> wrote: > I’m particularly interested in using a simple double-click to SELECT IP > addresses, such as one of the two in this line: > > IP Range: 87.76.32.0 - 87.76.63.255 (8,192) Kazakstan Hey Alfredo, As far as I

Re: Error 12182 with grep search on large file

2018-09-03 Thread Christopher Stone
On 09/02/2018, at 11:27, Sam Hathaway mailto:list.bbe...@munkynet.org>> wrote: > On 2 Sep 2018, at 10:26, Christopher Stone wrote: > I think it will be much slower than Perl on a multi-GB file. > > And it might choke > > Can you say more about this? I thought grep was se

Re: Error 12182 with grep search on large file

2018-09-02 Thread Christopher Stone
On 09/01/2018, at 19:08, Dave mailto:dave.live...@gmail.com>> wrote: > What's wrong with plain ol' grep? Hey Dave, Not much – I like it well and use it often – but I think it will be much slower than Perl on a multi-GB file. And it might choke – but it's been too long since I tested such a

Re: Running python script is locking windows

2018-08-30 Thread Christopher Stone
On 08/30/2018, at 09:09, Gauvins mailto:gauvi...@gmail.com>> wrote: > When BEdit is used to run a script, a modal window appears and the script > window is no longer accessible. Not a big deal in most cases, but I am now > working a scripts that run for hours and would like to be able to

Re: Error 12182 with grep search on large file

2018-08-29 Thread Christopher Stone
cation Support/BBEdit/Scripts/.pl #!/usr/bin/env perl -sw use v5.12; # ----- # Auth: Christopher Stone # dCre: 2018/08/29 22:08 # dMod: 2018/08/29 22:06 # Task: Search a selected file in the Finder with Perl. # T

Re: Any way to search previous searches?

2018-08-24 Thread Christopher Stone
and go-to-town.--Best Regards,Chris# Auth: Christopher Stone# dCre: 2018/08/24 13:36# dMod: 2018/08/24 13:48# Appl: BBEdit, AppleScript & Perl# Task: Extract Recent Find Strings from BBEdit Preferences.# Libs: None# Osax:

Re: Add all open files to a project?

2018-08-24 Thread Christopher Stone
On 08/23/2018, at 09:45, Christopher Stone mailto:listmeis...@suddenlink.net>> wrote: > On 08/22/2018, at 18:06, Barbara Snyder <mailto:barb...@signalfx.com>> wrote: >> I have a bunch of open files. I'd like to create a project that includes all >> open files

Re: AppleScript to Save, but only if file has been saved before (aka is not “untitled text”?

2018-08-23 Thread Christopher Stone
On 08/23/2018, at 13:39, Rich Siegel mailto:sie...@barebones.com>> wrote: > On 8/23/18 at 2:06 PM, luo...@gmail.com (TJ Luoma) > wrote: > >> *set* docList *to* (*documents* *whose* on disk *is* *true* *and* modified >> *is* *true*) > > I recommend that you use "text

Re: AppleScript to Save, but only if file has been saved before (aka is not “untitled text”?

2018-08-23 Thread Christopher Stone
n. Hey TJ, Something like this should do the job: -------- # Auth: Christopher Stone # dCre: 2018/08/23 10:35 # dMod: 2018/08/23 10:35 # Appl: BBEdit # Task: Save modified on-disk documents. # Libs: None # Osax: None # Tags: @Applescript, @Script, @BBEdi

Re: Add all open files to a project?

2018-08-23 Thread Christopher Stone
On 08/22/2018, at 18:06, Barbara Snyder mailto:barb...@signalfx.com>> wrote: > I have a bunch of open files. I'd like to create a project that includes all > open files (without me having to add them individually). Is there a way to do > this? Or do I have to enter a feature request? Hey

Re: Preview pane?

2018-08-19 Thread Christopher Stone
On 08/19/2018, at 05:05, @lbutlr mailto:krem...@kreme.com>> wrote: > This is what I do as well, but if I forget, or it I misskey, or if I click > some other preview window forward… > > It would be really convenient to be bale to have have the preview attached to > the edit window. Hey Lewis,

Re: Preview pane?

2018-08-17 Thread Christopher Stone
On 08/17/2018, at 12:17, @lbutlr mailto:krem...@kreme.com>> wrote: > User error, yes, but… > > Having a preview PANE that could stcfik to the documents (maybe as a full > screen/scplit screen option?) would be, I think, super useful. Hey Lewis, I don't think there's any way to stick a

Re: Applescript to change line breaks ?

2018-08-13 Thread Christopher Stone
On 08/13/2018, at 12:55, Bernardo mailto:issarf...@gmail.com>> wrote: > OK, I reply to myself. It works with: Hey Bernardo, This works with BBEdit 12.1: tell application "BBEdit" set line breaks of every text document to DOS end tell -- Best Regards, Chris -- This is the BBEdit Talk

Re: AppleScript to set the current file to: language = 'Unix Shell Script' ?

2018-08-13 Thread Christopher Stone
On 08/13/2018, at 10:39, TJ Luoma mailto:luo...@gmail.com>> wrote: > 1. How can I tell BBEdit “If you open a file with no file extension, assume > it is a 'Unix Shell Script' file? > > 2. Is there a way (presumably via AppleScript?) to tell BBEdit “Hey, this > document that you are currently

Re: Width of 'FTP Browser window'

2018-08-03 Thread Christopher Stone
On 08/03/2018, at 13:09, W.J. Llope mailto:wjll...@gmail.com>> wrote: > One thing I liked about TextWrangler was that I could make the FTP Browser > window quite narrow, effectively showing only filenames in the pwd. BBEdit's > version of this window appears to have a (rather large) minimum

Re: Checkmark denoting current doc prevents knowing if the doc is dirty

2018-08-02 Thread Christopher Stone
On 07/31/2018, at 18:24, Barbara Snyder mailto:barb...@signalfx.com>> wrote: > Am I making this up (that I could always see the dot, even if I was looking > at the current doc)? Hey Barbara, It looks that way... :) > I can make a request to put the dot on the right or something, so as not

Re: Align = (equals) for assignments

2018-07-26 Thread Christopher Stone
On 07/26/2018, at 20:23, Simdude mailto:markmille...@gmail.com>> wrote: > One of the plugins for vim I loved was Align. I used it to keep assignment > statements aligned. I didn't see a way to do this in BBedit so I threw > together a short Python script I thought I would share. Hey Mark, I'm

Re: Insert missing closing tags

2018-07-25 Thread Christopher Stone
On 07/25/2018, at 15:28, Greg Raven mailto:gregra...@gmail.com>> wrote: > Sorry I wasn't more clear. I know about that menu item, but I thought I used > to have a script that would go through the entire file and insert the missing > end tags. On the project I just finished, I had 1,400 HTML

Re: Need help with AppleScript to rename active document

2018-07-25 Thread Christopher Stone
On 07/25/2018, at 12:14, Rich Siegel mailto:sie...@barebones.com>> wrote: > > BBEdit does not "lock the file". :-) Hey Rich, Eh? Hmm... Oh, the Finder is choking on the FURL returned by the document's file property. I thought the Finder could handle FURLs now... Oh, well. This works:

Re: Need help with AppleScript to rename active document

2018-07-25 Thread Christopher Stone
On 07/25/2018, at 09:32, TJ Luoma mailto:luo...@gmail.com>> wrote: > I was searching for a way to rename the current BBEdit document today... Hey TJ, You're using BBEdit 12.x? Use Cmd-Opt-I to change the name. If you need it I can write you a script to automatically take you to the Text

Re: Insert missing closing tags

2018-07-25 Thread Christopher Stone
On 07/25/2018, at 09:16, Greg Raven mailto:gregra...@gmail.com>> wrote: > If I remember correctly, BBEdit used to come with a "built-in" script to > close open tags (such as, a paragraph that has an opening tag but no > corresponding closing tag). > > Is there a way of replicating this

Re: Open your files in your editor of choice (BBEdit version :)

2018-07-24 Thread Christopher Stone
On 07/24/2018, at 17:35, @lbutlr mailto:krem...@kreme.com>> wrote: > I have a script that does, I think, the same thing: Hey Lewis, It does. > Is there a reason to return an error? It's polite to provide at least basic error-handling in publicly posted scripts, although I'm guilty of not

Re: Open your files in your editor of choice (BBEdit version :)

2018-07-24 Thread Christopher Stone
way to go: # Auth: Christopher Stone # dCre: 2018/07/24 15:19 # dMod: 2018/07/24 15:19 # Appl: Finder and any given application. # Task: Open the Finder selection with a given app's bundle identifier. # Libs: None # Osax: None # Tags: @ccstone, @Applescript, @Script, @Finder, @Open

Re: Edit > Show Clipboard (BBEdit 10)

2018-07-20 Thread Christopher Stone
--- # Auth: Christopher Stone # dCre: 2018/07/20 07:32 # dMod: 2018/07/20 07:32 # Appl: BBEdit # Task: Dump BBEdit Clipboards to a new document. # Libs: None # Osax: None # Tags: @Applescript, @Script, @BBEdit, @Dump, @BBEdit, @Clipboards

Re: AppleScripts: how to not have them work in the find window

2018-07-04 Thread Christopher Stone
On 07/02/2018, at 01:30, Jon B. mailto:nyc2...@gmail.com>> wrote: > I set Smart Home to ⌘←. If I use this key in BBEdit's Find Window, I get an > error message. Hey Jon, In general it's a bad idea to hijack normal system-key functionality. It tends to be too be impossible to manage all the

Re: AppleScript syntax colouring? How?

2018-06-23 Thread Christopher Stone
On 06/12/2018, at 00:41, 'Martin Petersen' via BBEdit Talk mailto:bbedit@googlegroups.com>> wrote: > Played around with the Demo and I must say I am impressed by the support for > Regular Expressions in the find and replace dialogue. Yet I can not find > support (syntax coloring) for

Re: selecting blocs of lines

2018-06-19 Thread Christopher Stone
al exercise with `sed` and would be very fast. -- Take Care, Chris The Mark Script -------- # Auth: Christopher Stone # dCre: 2018/06/10 22:19 # dMod: 2018/06/10 22:19 # Appl: BBEdit # Task: Create Marker 01 for use in other scripts.

Re: selecting blocs of lines

2018-06-10 Thread Christopher Stone
On 06/10/2018, at 09:11, Rich Siegel mailto:sie...@barebones.com>> wrote: > What's the easy way to select a block of lines specified by line numbers? >> Like, I have a big text and want to select from line 57 to line 293? > > Here is an excerpt from the 12.1 change notes: > > * "Go To Line"

Re: selecting blocs of lines

2018-06-10 Thread Christopher Stone
On 06/10/2018, at 03:11, Jean-Christophe Helary mailto:brandel...@gmail.com>> wrote: > Chris, thank you ! :) Hey Jean-Christophe, You're welcome. I forgot to mention that I'm not doing any error checking in that script. If I were to do the full production I'd make sure the user couldn't input

Re: selecting blocs of lines

2018-06-10 Thread Christopher Stone
rent line to absolute end-line-num. That's as fancy as I'm willing to make it at this time, but with all the tools available you can get substantially more sophisticated. -- Take Care, Chris # Auth: Christopher Stone # dCre: 2018/06

Re: Including a Unix filter in a recorded script

2018-05-29 Thread Christopher Stone
> keeping the non-base64 text. > > I made a Find pattern to select the base64 sections: Hey There, You could do something like this with AppleScript. -------- # Auth: Christopher Stone # dCre: 2018/05/29 15:00 # dMod: 2018/05/29 1

Re: Find and Replace help please

2018-05-20 Thread Christopher Stone
On 05/18/2018, at 11:10, Matthew London > wrote: > Turns out there are sometimes multiple lines both within my KEEP text and in > my DELETE text. Hey Matthew, That's easy enough. Let's start off by using a test string that provides better

Re: Another Newbie GREP help request...

2018-05-19 Thread Christopher Stone
On 05/14/2018, at 22:15, Matthew London > wrote: > PS.Grateful if someone can recommend a "GREP for non-programmers" written in > plain(er) English so I don't have to bother you very helpful people here. Hey Matthew, It takes a while to get good

Re: How can I find all lines containing a pattern and then copy those lines?

2018-05-09 Thread Christopher Stone
On 05/08/2018, at 02:26, Doug Lerner > wrote: > Using Find with grep checked on I'm looking for lines in a large file > containing this pattern: > > registeredTd="11/\d\d/2017 > > It stands for a registered date of November, 2017. > > If I "find all"

Re: Find and Replace help please

2018-05-03 Thread Christopher Stone
On 05/02/2018, at 12:25, Matthew London > wrote: > I have a file with the following: > > &&& > TEXT STRING I WANT TO KEEP > ### > TEXT STRING I WANT TO DELETE > &&& > TEXT STRING I WANT TO KEEP > etc, > > Where there is a linebreak after &&&, ###,

Re: Multiple replace of highlighted text

2018-05-03 Thread Christopher Stone
On 05/03/2018, at 22:20, Robert > wrote: > If I have a word highlighted throughout my code, is there a key combo that > allows me to replace the one instance and it replaces them all? Hey Bob, Not at present. You can use Cmd-E to “Use Selection

<    1   2   3   4   5   6   7   8   9   >