Re: Compare Two Front Documents?

2008-11-25 Thread Bruce Van Allen

Hey Bee,

On 11/25/08, Bee [EMAIL PROTECTED] wrote:
'Compare Two Front Documents' places the two documents side by 
side  and the result window at the bottom. Most of the time the 
lines in  the documents are too wide to see the differences 
while the windows  are side by side.

Is there a preference to stack the windows?


I have a script that diffs the two front documents; it shows the 
two docs wide one above the other, and places the Differences 
window on my second screen. But the script doesn't show anything 
about window location options.

I don't see a Preferences setting that addresses this; but 
window arrangement is mostly covered under the the Windows -- 
Arrange... Arrange Windows dialog (in BBEdit 9.0.2 -- I think it 
was similar in 8.x).

I think the way I got the arrangement I wanted was by doing a 
diff so the two docs and the Differences window are showing, and 
THEN Arranging windows: the dialog is slightly different from 
how it appears with just a single doc window in front. See if 
that works.

Here's my script in case you could use it:

[Watch out for email line-breaking!]

tell application BBEdit
 activate
 set cOptions to {ignore leading spaces:false, ignore 
trailing spaces:false, ignore extra spaces:false, case sensitive:true}

 set doc1date to modification date of document 1
 set doc2date to modification date of document 2
 if doc1date  doc2date then
 set new_win to text window 1
 set old_win to text window 2
 else
 set new_win to text window 2
 set old_win to text window 1
 end if

 set cResult to compare new_win against old_win options cOptions
 if not differences found of cResult then
 display dialog reason for no differences of cResult 
buttons {OK} ¬
 default button OK with icon note
 end if
end tell

HTH





Best,

 - Bruce

_bruce__van_allen__santa_cruz__ca_

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to [EMAIL PROTECTED] 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Auto Save Default Window

2008-12-04 Thread Bruce Van Allen

On 12/4/08, ptackbar [EMAIL PROTECTED] wrote:

This option manually saves the default window position, but I want
BBEdit to *always* remember it's window size and position each time I
end the program.  I don't want to have to manually invoke that menu
command just before I close the program.

I'd love BBEdit to support this natively, but if there were a way to
invoke the Save Default Window command via AppleScript, I'd be
happy.


Are you familiar with these?
   Preferences - Text Files - Honor Saved State
   Preferences - Text Files - Save Document State
   

HTH


Best,

- Bruce

_bruce__van_allen__santa_cruz__ca_

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to [EMAIL PROTECTED] 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Auto Save Default Window

2008-12-05 Thread Bruce Van Allen

On 12/5/08, Seth McFarland [EMAIL PROTECTED] wrote:
Textmate (Mac), Coda (Mac), Notepad++ (Windows) and UltraEdit (Windows) all
work the way I've described.  In doing some testing I see that SubEthaEdit
and Textpad work in a similar way to BBEdit.  So apparently there is not a
universal behavior.

Yes.

I'd still like to know if there is some way to make BBEdit invoke the Save
Default Window on each program close.  I tried some GUI AppleScripts but
didn't have much luck.

I don't recall you saying this before, but see below.

 On 5-Dec-2008, at 07:54, Seth McFarland wrote:
  I'm not sure how they are contradictory at all.  My desire is for
  BBEdit to function the way the vast majority ( 99%?) of all Mac
  applications work.

It's when you wrap your ignorance in arrogance like this that 
leads me (and others?) to almost ignore the opportunity to give 
you suggestions.

Anyway, you are asking for behavior that seems inconsistent and 
contradictory, perhaps because it wasn't stated clearly.

But MOVING ON, here's a _partial_ solution, based on your latest 
request (above):

1. Set a menu command for Save Default Window.
2. Record an Applescript of simply calling that menu command.
3. Save the script in the ~/Library/Application 
Support/BBEdit/Menu Scripts folder, named BBEdit•Quit BBEdit 
(no quotes).

But let me caution you:

- In previous messages you refer to the main BBEdit window. No 
such thing. Maybe you mean front-most.

- If your settings make BBEdit save state and honor saved state, 
individual documents should open the way they've been last 
modified, regardless of BBEdit-wide preference settings and 
new-doc settings.

HTH




Best,

 - Bruce

_bruce__van_allen__santa_cruz__ca_

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to [EMAIL PROTECTED] 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Grep Pattern

2008-12-19 Thread Bruce Van Allen

On 12/19/08 at 9:49 AM, thepickled...@gmail.com (Chris) wrote:
 Thanks Patrick! Seems there are many solutions with grep. Are there
 any good books or online tutorials for learning grep?

1. THE Reference:
Mastering Regular Expressions, by Jeffrey Friedl, O'Reilly  Associates.

2. Very useful:
BBEdit Manual

HTH


   - Bruce
   
_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



RE: Automatically Reload Documents

2008-12-31 Thread Bruce Van Allen

On 12/31/08 at 10:17 AM, dave.fi...@gmail.com (Dave Fitch) wrote:
 What would be nice would be if there was some way to get BBEdit to reload
 open documents from an FTP server...[Or can BBEdit do this and I have missed
 it?]

I think you've missed it.  Both of the following work over here:

1. When starting up BBEdit, it re-loads files that were open via FTP when 
BBEdit last quit.

2. Files opened via FTP are listed under Files - Open Recent.

Are those what you meant?



   - Bruce
   
_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: default font based on filetype/suffix?

2009-01-23 Thread Bruce Van Allen

On 1/23/09 at 9:58 AM, jjcr...@myuw.net (Jon Crump) wrote:
Seems like this ought to be possible but I haven't worked out 
how. I'd like to be able to open code files (with .py, .js, 
.html or what have you suffixes) In one typeface and textfiles 
(.txt, or no suffix) in another. Is this possible?

I like to have certain types of file look different on screen, 
perhaps for the same reason you want yours to open with fonts 
differing. Here's what I do:

I use Languages preferences to a) map file suffixes to 
languages, and then b) for each language important to me, click 
Options to set things like background color and text color to 
distinct combinations.

Tying the color schemes to file suffixes makes this work even 
when I didn't create the file originally.

Differing background colors let me quickly distinguish template 
files, data tables, and program code.

This doesn't do quite what you ask, because the the Languages 
preferences don't provide font choices. But it might be another 
way to get what you need.

HTH



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Option Select Line Jumps

2009-03-03 Thread Bruce Van Allen

On 3/3/09 at 6:19 AM, mapping...@gmail.com (mappingman) wrote:

Selecting a line of text, using the option click in the left margin
method, will jump to a different line and select that line if it is
identical to the one you are trying to select. This is very annoying
behavior. Is there a way to turn this OFF?

I see the same behavior, but I think there are two things happening:

1. Selecting a line by clicking in the left margin is an option 
under Preferences - Editing: General - Allow single-click line 
selection. I don't find anything in the docs about using the 
Option key with this.

2. Clicking the left margin with the Option key down causes 
BBEdit to search for the next identical line. This is 
independent of whether single-click line selection is enabled. 
If there is no identical line, the wrap-around search symbol 
flashes, and the selection doesn't go anywhere. So far I haven't 
found anything in the docs about this Jump to Next Identical 
Line capability, but I can see how it would be very handy.

HTH




- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Option Select Line Jumps

2009-03-03 Thread Bruce Van Allen

On 3/3/09 at 12:49 PM, argent...@mac.com (Dennis) wrote:

Option-double clicking on a single word triggers the Search - 
Find  Selected Text command. You can do the same thing for a 
full line with  Option-triple click.

Hmm. Not in my BBEdit (9.1.1). And, simply clicking once in the 
left margin with the option-key gets the effect of jumping to 
the next identical line.

This is probably all explained in the docs, but I've run out of 
time at the moment after searching on option-click, option, 
and select line.



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Option Select Line Jumps

2009-03-05 Thread Bruce Van Allen

On 3/4/09 at 12:13 PM, mapping...@gmail.com (mappingman) wrote:

The way to select a line has
always been to option click the left margin, until now.

Sorry, not over here.

I recall considerable happiness on this list when BBSW 
introduced the preference option to enable clicking in the left 
margin to select a line (with no key pressed). There was also 
some adjustment needed over how clicking the margin to select a 
line handled soft-wrapped lines.

That was sometime back in v. 7 or 8. How's that for a narrow 
range of time? I found the printed manual from v. 6 and it's not 
mentioned there -- nor is option-clicking the left margin 
mentioned in its description of ways to select text. The rest of 
my manuals are packed away on the old program install CDs.

Anyway, it's really a sincere question to ask why you want 
option-click when you get the desired result just from 
click. Perhaps there are fine answers. But even if 
option-clicking the left margin DID select the adjacent line in 
a previous version of BBEdit, you haven't lost the 
functionality, just the keypress.

I'm guessing that the jump-to-next-identical-line behavior when 
option-clicking the left margin is new, and before that the 
option key didn't do anything when the left margin was clicked. 
That would explain both your and my experiences (assuming the 
Allow single-click line selection preference was checked).



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: [ANN] LottoCal 1.0

2009-04-01 Thread Bruce Van Allen

On 4/1/09 at 8:54 AM, sie...@barebones.com (Rich Siegel) wrote:

Hi all,

We have a new product announcement today: LottoCal 1.0.

I downloaded it from the link Disk Image: (1.2TB) Download Now.

I can see from a quick look through the code (with BBEdit, 
natch) that you've included the usual BBSW Ponies module. From 
that, I'm probably not alone in expecting that version 1.1 will 
provide advance results of horse-racing and other equestrian competitions.

Great work!!!



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: CSS Autocomplete

2009-04-23 Thread Bruce Van Allen

On 4/23/09 at 5:36 AM, plw...@wisc.edu (Peter Weil) wrote:

 [Textmate is ]smart enough to overwrite the auto-inserted one. If you
 type an opening character and then delete it using backward delete...
 then the auto-inserted character will also be deleted... It is also
 possible to wrap a selection in an open/close character by selecting
 text and typing the opening character. For example if you type foo,
 select it and type (then TextMate will make it (foo) placing the caret
 after the ending parentheses.

Without pressing a control key at the same time as the '('? 

Ew. That would be a terrible violation of standard (Mac at least) UI behavior.


   - Bruce
   
_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Can this be done with Bedit ?

2009-04-26 Thread Bruce Van Allen

On 4/26/09 at 1:09 AM, most...@gmail.com (Jan Erik Moström) wrote:

I agree with the others, it's easier to generate the page from scratch

And just to make doing this really easy, generate the image list 
as a separate file, and use the Web's original templating 
system, SSI, to insert it into the correct spot in your web page 
as an included file. From then on, updating is trivial: just run 
your script and replace the old include file with the new one.



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Using SSH with BBEdit

2009-05-05 Thread Bruce Van Allen

Hi All,

An ISP where I will be hosting some web apps has opened SSH 
access for me.

I haven't had the occasion to use SSH before now, so I'm going 
through the SSH manuals, checking the docs of various programs, 
and searching around for articles and tips.

I've seen bits and pieces about SSH on this list over the years, 
so I know there are folks who use BBEdit with this form of 
remote access. It's a rare day that I don't have many local and 
remote files open in BBEdit. So I'd love to hear from anyone on 
this list if you have a favorite practice with SSH, or can point 
me to useful resources. (Post here so others might benefit as well.)

Thanks!



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Ignore line endings

2009-05-10 Thread Bruce Van Allen

On 5/10/09 at 7:03 AM, rsfre...@verizon.net (RichF) wrote:

Can BBedit be set to ignore line endings ie move cursor to any column?

I want to ignore the end of line so that I can position my cursor
anywhere. Or find a way to move the end-of-line automatically.

If current line of text ends at position 49, I want to place text at
position 72 without having to type tabs or spaces. MultiEdit for
Windoze allows one to ignore line endings.

I can't answer technically about whether BBEdit can or should do 
this, but I'm so curious:

1. What purpose does this serve?

2. What would be between column (position) 49 and column 72 if 
there are no spaces or tabs?

3. When you use MultiEdit, can you have it show all invisible 
characters (space, tabs, line-feeds, carriage returns)? What 
does MultiEdit put in the intervening space?

I wonder whether you are confusing a text editor (e.g., BBEdit) 
and a word processor? The closest thing I know of to what you've 
described is when newer versions of MS Word allow a double click 
anywhere on the page to put the cursor at that point. But of 
course what Word is doing is adding tabs, spaces, margins, text 
boxes, etc. to get the cursor to that point, so I'm not sure 
that's what you are asking for.

Both columns and line endings are fictions of presentation. 
Text is just a continuous line of characters. The customary way 
to present a line of characters on screen or in print is to 
designate one or more characters as having the role of moving 
the flow of text to a new line and to the starting point at the 
margin. Which characters have these roles is set by the 
operating system.

Maybe all you mean is a convenience function that pads over to 
where you click, so you don't have to press a few keys.

Please enlighten.



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Ignore line endings

2009-05-10 Thread Bruce Van Allen

On 5/10/09 at 8:38 AM, fri...@manoverboard.org (Fritz Anderson) wrote:

On 10 May 2009, at 9:47 AM, Bruce Van Allen wrote:

1. What purpose does this serve?

Given the emphasis on column 72, I assume he's coding FORTRAN, 
and  needs to get to the line-sequence field. He wants to press 
a super-tab  key, which will space-fill the line so the next 
character goes into  column 72, like a tab stop in the control 
card on a keypunch. I seem  to recall that TextMate has a 
similar feature (at least of moving the  cursor to beyond EOL, 
and space-filling the difference).

I don't think BBEdit has this feature, but so many people have  
confidently said BBEdit can't do something, and been proven 
wrong, I  don't want to commit myself. My searches turned 
nothing up. I toyed  with setting tab spacing to 72, and 
relying on the Detab command, but  that's insane.

Thanks for this explanation. I don't know either if such a 
function exists in BBEdit, but it would be trivial to script it 
in Applescript. Then assign the script a keyboard command, maybe 
Control-Tab, just to stick with the super-tab idea.



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: How do I add all .c files to a project?

2009-05-10 Thread Bruce Van Allen

On 5/9/09 at 8:10 AM, ti...@tabi.org (Timur Tabi) wrote:

I'm surprised that this is not a built-in feature.  BBEdit is at
version 9, and it still can't do this?

How do I script it?

Since it's hard to tell if you're evaluating or just flaming, 
all I feel like offering is: RTFM.


- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Ignore line endings

2009-05-13 Thread Bruce Van Allen

On 5/12/09 at 12:15 AM, deepr...@gmail.com (David Nugent) wrote:
On 11/05/2009, at 12:47 AM, Bruce Van Allen wrote:
On 5/10/09 at 7:03 AM, rsfre...@verizon.net (RichF) wrote:
  Can BBedit be set to ignore line endings ie move cursor to 
any   column?
1. What purpose does this serve?
This functionality is known as 'virtual space', and it is a useful

Basically it means that cursor movement is not restricted to 
the end  of the current line (or the end of file!) and if you 
insert a new  character in virtual space after the end of the 
line or after eof,  the intervening space is simply whitespace 
filled (horizontal or  vertical fill dependant on current hard 
tab and line ending modes  respectively).

Ah. I can see how it would be useful in some situations.

OTOH, in most of my work on data files, arbitrarily-added white 
space would be sub-optimal to say the least. Also, page up/page 
down don't move the cursor in BBEDit or other (Mac) editors/word 
processors, but I suppose this could apply (optionally, as you 
suggest) to the arrow keys.

Thanks for this information.


- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Find fuction STILL deficient

2009-07-06 Thread Bruce Van Allen

On 7/6/09 at 6:52 AM, xto...@gmail.com (Homer) wrote:

If I haven't selected any text and initiate a find/replace function,
the Selected text only button should automatically NOT be checked.
Otherwise, I look like an idiot.

Seems that you have a limited use-range. I sometimes open and 
close (or access and leave) the find/replace dialog a few times 
while adjusting find and replace patterns. But once it's ready I 
still might apply the operation to a selection.

Also, given that the dialog I prefer is the new non-modal one, I 
often just keep it open, changing the find and replace patterns 
and the options as needed. And if I do close and later re-open 
the dialog, I want it to come back in the same state I left it 
in. That is way more useful to me than a dialog that robotically 
changes the search options whenever I open it.

Also, if the dialog did what you describe, the Selected Text 
Only checkbox would be continuously blinking on and off as you 
select and de-select text while working in your document.

By parity of logic, if I have selected text, presumptively that button
SHOULD automatically be checked.

No -- what if the selected text is being used as the search 
phrase? I do this many times a day -- select a word or phrase 
and then choose Use Selection for Find or Use Selection for Replace.

If BBEdit programmers can't see the crystaline logic of this, then
please at least let me set a preference somewhere.

Logic with incomplete information does not make a compelling 
argument. I don't mind you having a preference for this, 
although I think you need to specify more clearly what this 
would be. If you take into account what I've mentioned, I doubt 
it would be as simple as you seem to think.



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: using arguments (argv) for running script from within BBEdit?

2009-07-07 Thread Bruce Van Allen

On 7/7/09 at 6:59 AM, gehabtgeh...@googlemail.com (Tom_P) wrote:
So: is there some way to tell BBEdit to use a certain argument when
executing a script? Or how are others coping with this situation?

This is a perfect case for BBEdit shell worksheets.

Using whatever form of input params your script accepts -- 
ordered args, key=val pairs, etc -- type out your paths, 
variables, meta-data, etc., and then type out your execution 
line, then select all of the above and hit Enter.

Here's a real-world example: a worksheet that calls a script to 
analyze election contributions (using a Perl script, but you get 
the idea). This uses key=val pairs to set up the script.

To use, select from the first line down to and including the 
'#-#-#' line; then press the Enter key. Any output prints out 
below, allowing easy documenting and error checking. I also have 
a script in BBEdit that clears the worksheet below the #-#-# 
line, so can I see results, maybe copy or save them, and then 
quickly revert to ready state to execute again.

Note that some variables are commented out -- an easy way to 
test alternatives without retyping every time; just move the 
comment mark (# here).

Pay attention to how things are quoted, both the key=val pair 
settings and in the execution line.

Note also that below the execution line there are some lines 
commented out; if these lines are un-commented, and the 
execution line is commented, then the worksheet executes with 
Perl's profiler for de-bugging.

Email will probably have cut some of the following lines, but 
this is just meant to illustrate the idea, not be executed...

A='Project=to2008NOV19'
B='base_dir=/Volumes/Data/.../Analysis'
C='source_file=CONTRIBS_to_2008-11-19.txt'
D='criteria=all'
E='amount_fld_name=amount'
F='crosstab=name donor_type donor_class address city zip county 
state occupation date election'
G='max=20'
H='increment=200'
I='delay=0'
J='db_version=_a'
# K='rpt_criteria=donor_type~organization'
# L='rpt_version=_organizational'
K='rpt_criteria=donor_type~person'
L='rpt_version=_personal'
# K='rpt_criteria=all'
# L='rpt_version=_all'

perl /Volumes/Data/.../Analysis/analyze_contribution_log $A 
$B  $C  $D  $E  $F  $G  $H  $I  $J  $K  $L

# Profile:
# perl -d:DProf 
/Volumes/Data/.../Analysis/analyze_contribution_log $A $B  
$C  $D  $E  $F  $G  $H  $I  $J  $K  $L
# dprofpp tmon.out

#-#-#


HTH



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Not able to record applescripts in Snow Leopard

2009-09-12 Thread Bruce Van Allen

On 2009-09-12 at 8:46 AM, kevinbe...@gmail.com (Beebs) wrote:
I use the record function for the basis of my scripts and it appears
that not only will it not record AppleScripts, it won't even open the
AppleScript Library for viewing.

Same over here, only with Snow Leopard. I and others have 
reported it to support, and they are working on it.

I've been told that the Script Debugger still has access to the 
BBEdit scripting dictionary, possibly offering a work-around.





- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Line endings with Unix servers

2009-09-30 Thread Bruce Van Allen

On 2009-09-30 at 12:10 PM, rsfre...@verizon.net (Richard S. 
French) wrote:

Questions for others using BBedit and transferring files to a 
unix server.

What line endings do you use for the files that you edit locally on
your machine?

In Mac OS X, the underlying system is UNIX, and I keep most of 
the files I edit with BBEdit in UNIX (LF) line endings. The 
exceptions are primarily due to some applications -- Excel and 
Filemaker most prominently in my workflow -- that impose System 
9 Mac line endings when they export or Save As... to text 
files. Newer versions of both apps have gotten better at sensing 
line endings correctly when importing, but I am still 
occasionally surprised by squirrelly behavior until I realize 
what's happening...

Of course, BBEdit happily opens files correctly no matter what 
the line endings are, unlike many other apps. Thus it is 
sometimes necessary to convert line endings one way or the other 
when flinging files around between apps. If it's an individual 
file, I use BBEdit's handy features. For batches of files, and 
files manipulated programmatically, I use a utility I wrote in 
Perl that converts any line ending to any other as I specify.

Do you keep all files as native Mac line endings (CR)? Or unix (LF) or
windows (CR/LF)?

UNIX unless in process with as above. CR is only native Mac on 
System 9 and earlier.

Do you change the line endings before you transfer to Unix or do you
change them only on the Unix server?

Before, if they aren't already LFs.

Is there a way to keep a file locally with Mac line endings and use the
FTP browser to change it to Unix when transferring to Unix?

Why would you want to do this? If life is simple, i.e., your 
work flows between BBEdit and your UNIX server, then keep all 
files in UNIX format. If you're forced to work with apps that 
still insist on System 9 Mac line endings, BBEdit's tools might 
suffice; otherwise you'll need to get or write a batch 
converter. I believe most FTP apps, including BBEdit's built-in, 
convert text files to the destinations's format for you.

Thanks, Richard.



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Spanning line endings

2009-10-16 Thread Bruce Van Allen

On 2009-10-16 at 4:35 AM, ccstone1...@gmail.com (Christopher 
Stone) wrote:
There *is* a switch to make '.*' span line endings - yes?

Assuming you mean in regular expressions (grep patterns), yes, 
of course. BBEdit uses PCRE search patterns (PCRE == Perl 
Compatible Regular Expressions).

Include (?s) in your search pattern , or enclose the relevant 
portion of it with (?s: [your sub-pattern here]). Note the colon 
(':') in the latter.

 From the manual (p 186):
s — By default, the magic dot metacharacter . matches any 
character except return (\r). If you turn this option on with 
(?s), however, dot will match any character. Thus, the pattern 
(?s).+ will match an entire document.

HTH.



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Sorting fortune file

2009-10-18 Thread Bruce Van Allen

On 2009-10-18 at 3:37 PM, gkr...@gmail.com (le...@gmail) wrote:


I have a fairly long fortune file ( 
http://home.kreme.com/mysigs.txt )  that I would like to sort 
in alphabetic order, excepting leading  punctuation or supper 
common words like 'a', 'the', 'I', c.

I have two problems, one of which I think is trivial, so let's 
cover  that one first.

I need to capture the entire 'fortune' from % %, but fortune 
files  don't have a leading % or a closing % at the file 
boundaries. Many of  the fortunes are multiple lines, and I do 
not want to muck up the  formatting when I sort.

The second problem, of course, is excluding a list of words I 
consider  'common' from the sort.  For example,

May the forces of evil become confused on the way to your house

I would have both 'the' and 'may' in my exclusion list, so that 
should  sort based on 'forces'.

If a pig looses its voice, is it disgruntled

would be sorted under 'pig'

Ideas?  Probably a perl script, huh?


Try this untested script (provide filenames and add your own 
list of skipped words below __END__):

#!/usr/bin/perl -w

my %sort_buckets;
my %exclusions;

# provide your filenames here:
my $file_to_sort = 'path/to/file_to_sort';
my $sorted_file = 'path/to/sorted_file';

while (DATA) {
 $exclusions{$_}++;
}

open $in, , $file_to_sort
 or die Can't open file: $!;

while ($in) {
 my $line = $_;
 my $sort_key = join  = map {
 $_ =~ /$exclusions{$_}/i ? () : $_
 } split   = $line;
 $sort_buckets{$sort_key} = $line;
}

close $in;

open $out, , $sorted_file
 or die Can't open file: $!;

foreach (sort keys %sort_buckets) {
 print $out $sort_buckets{$_}, \n;
}

close $out;

__END__
a
the
this
that
you
when
is
may
be
if


- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Sorting fortune file

2009-10-18 Thread Bruce Van Allen

On 2009-10-18 at 4:52 PM, b...@cruzio.com (Bruce Van Allen) wrote:

On 2009-10-18 at 4:17 PM, b...@cruzio.com (Bruce Van Allen) wrote:

Try this untested script (provide filenames and add your own 
list of skipped words below __END__):

OK, that was untested and I just tested it and there's a thinko. 
Hang on a minute.


Here we are:

#!/usr/bin/perl -w

my %sort_buckets;
my %exclusions;

# provide filenames:
my $file_to_sort = '/path/to/file_to_sort';
my $sorted_file = '/path/to/sorted_file';

while (DATA) {
chomp;
$exclusions{$_}++;
}

open $in, , $file_to_sort
or die Can't open file: $!;

while ($in) {
my $line = $_;
my @words = split   = $line;
my $sort_key = '';
for (0..$#words) {
if ($exclusions{lc($words[$_])}) {
next;
} else {
  $sort_key = join  = map { lc($_) } @words[$_..$#words];
  last;
}
}
$sort_buckets{$sort_key} = $line;
}

close $in;

open $out, , $sorted_file
or die Can't open file: $!;

foreach (sort keys %sort_buckets) {
print $out $sort_buckets{$_}, \n;
}

close $out;

__END__
a
the
this
that
you
when
is
may
be
if
i
have


   - Bruce
   
_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Sorting fortune file

2009-10-18 Thread Bruce Van Allen

On 2009-10-18 at 5:35 PM, jlund...@pobox.com (Jonathan Lundell) wrote:

Bruce, how are you handling the % fortune separator?

Not sure what you are referring to.

On Oct 18, 5:22 pm, Bruce Van Allen b...@cruzio.com wrote:
 On 2009-10-18 at 4:52 PM, b...@cruzio.com (Bruce Van Allen) wrote:

 On 2009-10-18 at 4:17 PM, b...@cruzio.com (Bruce Van Allen) wrote:

 Try this untested script (provide filenames and add your own
 list of skipped words below __END__):

 OK, that was untested and I just tested it and there's a thinko.
 Hang on a minute.

 Here we are:

 #!/usr/bin/perl -w

 my %sort_buckets;
 my %exclusions;

 # provide filenames:
 my $file_to_sort = '/path/to/file_to_sort';
 my $sorted_file = '/path/to/sorted_file';

 while (DATA) {
     chomp;
     $exclusions{$_}++;

 }

 open $in, , $file_to_sort
     or die Can't open file: $!;

 while ($in) {
     my $line = $_;
     my @words = split   = $line;
     my $sort_key = '';
     for (0..$#words) {
         if ($exclusions{lc($words[$_])}) {
             next;
         } else {
           $sort_key = join  = map { lc($_) } @words[$_..$#words];
           last;
         }
     }
     $sort_buckets{$sort_key} = $line;

 }

 close $in;

 open $out, , $sorted_file
     or die Can't open file: $!;

 foreach (sort keys %sort_buckets) {
     print $out $sort_buckets{$_}, \n;

 }

 close $out;

 __END__
 a
 the
 this
 that
 you
 when
 is
 may
 be
 if
 i
 have

    - Bruce

 _bruce__van_allen__santa_cruz_ca_



   - Bruce
   
_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Sorting fortune file

2009-10-18 Thread Bruce Van Allen

On 2009-10-18 at 5:53 PM, b...@cruzio.com (Bruce Van Allen) wrote:

On 2009-10-18 at 5:35 PM, jlund...@pobox.com (Jonathan Lundell) wrote:

Bruce, how are you handling the % fortune separator?

Not sure what you are referring to.

OK, my bad for responding to something in between running my own 
work jobs. I looked at the fortune file, so now I see the '%'.

Before the start of the read loop, add the line

$/ = %\n;

while ($in) {
 next if /\%/;

I know, you hate that, too...  :-)

Also, take of the \n at the end of each output line

print $out $sort_buckets{$_}, \n;

Just say:

   print $out $sort_buckets{$_};


- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Sorting fortune file

2009-10-18 Thread Bruce Van Allen

On 2009-10-18 at 6:20 PM, b...@cruzio.com (Bruce Van Allen) wrote:

On 2009-10-18 at 5:53 PM, b...@cruzio.com (Bruce Van Allen) wrote:

On 2009-10-18 at 5:35 PM, jlund...@pobox.com (Jonathan Lundell) wrote:

Bruce, how are you handling the % fortune separator?

Not sure what you are referring to.

OK, my bad for responding to something in between running my 
own work jobs. I looked at the fortune file, so now I see the '%'.

Before the start of the read loop, add the line

$/ = %\n;

Besides doing that, you'll need to deal with the punctuation 
marks at the start of some lines.

Aside from the punctuation marks, it now looks like this:

#!/usr/bin/perl -w

my %sort_buckets;
my %exclusions;

my $file_to_sort = '/path/to/file_to_sort';
my $sorted_file = '/path/to/sorted_file';

while (DATA) {
 chomp;
 $exclusions{$_}++;
}

open $in, , $file_to_sort
 or die Can't open file: $!;

$/ = %\n;

while ($in) {
 my $line = $_;
 my @words = split   = $line;
 my $sort_key = '';
 for (0..$#words) {
 if ($exclusions{lc($words[$_])}) {
 next;
 } else {
 $sort_key = join  = map { lc($_) } @words[$_..$#words];
 last;
 }
 }
 $sort_buckets{$sort_key} = $line;
}

close $in;

open $out, , $sorted_file
 or die Can't open file: $!;

foreach (sort keys %sort_buckets) {
 print $out $sort_buckets{$_};
}

close $out;

__END__
a
the
this
that
you
when
is
may
be
if
i
have


- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Sorting fortune file

2009-10-19 Thread Bruce Van Allen

On 2009-10-19 at 11:33 PM, gkr...@gmail.com (le...@gmail) wrote:

It's a bad sign when the first line in the script completely 
confuses  me.

 #!/usr/bin/perl -w

Standard invocation of Perl at the start of a script, with 
warnings enabled.

 my %sort_buckets;

Just a name for a variable.

 my %exclusions;

And %exclusions is just automagically pulled from the end of 
the file  (After the __END__?)

Yes, the idea being that you might not think of all the words to 
exclude right away, so it's a convenient place for you to 
maintain the list.

These lines do the work:

while (DATA) {
  chomp;
  $exclusions{$_}++;
}

DATA is a filehandle for the lines that appear after __END__.

I had the impression you were more familiar with Perl; otherwise 
I wouldn't have composed something so quickly and so bare of 
explanation. I did it while waiting for my machine to process 
some large data sets (with Perl, natch). If I'd had time to be 
more deliberate, I probably would have spared the list all my 
revisions and also the opportunity for snarky comments about 
Perl :-).



- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Sorting fortune file

2009-10-19 Thread Bruce Van Allen

On 2009-10-19 at 11:34 AM, r...@tamias.net (Ronald J Kimball) wrote:

On Sun, Oct 18, 2009 at 04:37:11PM -0600, le...@gmail wrote:

 If a pig looses its voice, is it disgruntled
   would be sorted under 'pig'

You've already been provided with a Perl script, so I guess I won't
bother with that.  I'll just point out that this should be loses, not
looses.
:)

Maybe if a pig *looses* its voice it would be quite delighted :-).


- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: FTP File Mappings?

2009-11-08 Thread Bruce Van Allen

On 2009-11-08 at 10:41 AM, summitsc...@gmail.com (Scout) wrote:

Where in Mac OS X does one find the file mappings which indicate
whether FTP should upload a specific file type  as ascii or binary?

I remember that this was available in the control panels of OS9, but
can't seem to find it in OS X.

I've always handled this in the ftp client's settings. Don't 
remember what you describe in OS9, except maybe Internet Config, 
which IIRC could modify the settings of the ftp client.

Anyway, how are you doing ftp? I.e., command-line ftp commands, 
GUI client such as Fetch, Interarchy, Transmit, etc?


- Bruce

_bruce__van_allen__santa_cruz_ca_


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
-~--~~~~--~~--~--~---



Re: How to Run a line of code in external program

2010-01-13 Thread Bruce Van Allen

On 2010-01-12 at 11:31 AM, chriscorb...@gmail.com (Chris) wrote:


Just curious, are people also using the shell worksheet in BBEdit?


Short answer:

Yes.

Long answer:

Oh, yes.

Here's one of my uses:

I prepare voter data for election campaigns. I run large sets of 
data through a series of processes to make a useful voter file 
for campaign planning and voter contact.


The problem: how to manage a complex and time-consuming data 
processing task, as follows:


Each county has its own format for voter registration data, and 
a county's data structures and database field names may change 
from one election to the next. Voter data churns constantly -- 
people move, die, and change name, party, gender, and so on. 
Jurisdiction boundaries, precinct lines, and even zip code areas 
change, too.


In this environment, each time I set up a voter file, I have to 
start from the beginning, building from raw data about voters, 
streets, districts, past elections, and other information, any 
of which might have changed in content or structure since the 
last time I processed it.


A typical county's voter roll requires 17 processes, which 
cumulatively clean, standardize, and cross-tabulate the data 
into final form. Each process ends with tests, whose results 
must be checked (bio-optically ;-) before the next process may 
begin. Some times it's necessary to back up one or more steps in 
the processing when a problem is found.


Running the complete processing series with no interruptions 
takes five to eight hours (I can do other work during most of 
that time).


Is that enough of a problem statement? Add to it the obvious 
need to keep written track of things both during the processing 
and between processing occasions.


My solution:

For each election, each county gets a data processing directory 
into which I copy a set of BBEdit shell worksheets, one for each 
of the 17 processes, plus a few others.


Each worksheet is named for its process; the content of the 
worksheet is  one or more lines of input arguments, followed by 
a call to the script the does the processing. When the script is 
executed, its output prints out on the worksheet.


For my processes, the output includes progress indicators as 
files are read or written, counts of things found, samplings of 
in-process data, and finally the test results from the process 
and the paths to the data file(s) that the process yielded.


Here's an example of one of these worksheets, down to and 
including the line with #-#-#:


A='Project=OCT2009'
B='base_dir=/Volumes/Campaigns/2009/CO_01'
C='source_file=voter_tabs.txt'
D='criteria=all' # 'criteria=age50'
E='crosstab=gender pty_group age_cohort zip'

perl /Volumes/LIB/make_cross_tab_summaries $A $B $C $D $E
#-#-#

The above worksheet sample uses a format that works with the 
standard bash shell under OS X Snow Leopard. My scripts parse 
standard input as name=value pairs.


Select all lines from A= down to and including the line with 
#-#-#. When you press Enter, the output will print below the 
#-#-# line. I have an Applescript that clears the sheet below 
the #-#-# line and then re-selects the top lines and #-#-# line, 
ready for me to press Enter again to re-run the process.


With its own dedicated shell worksheet, each process and its 
input parameters, progress reports, and outcomes may be 
reviewed, re-run, checked, and annotated for future reference. 
Multiple worksheets may be opened and their processes executed 
simultaneously (assuming non-dependence).


There is only one copy, in a central library, of the actual 
script for each processing step; it may be pointed to by 
multiple shell worksheets each with its own parameters.


During script development, I start using the shell worksheet to 
call the script from the very beginning. Reflecting this, the 
first line output from the scripts I'm describing here simply 
shows that the script initialized and loaded its needed modules:


Tue Jan 12 19:21:29 2010  Initializing... Process 5396 using 
BVA::XDATA 3.90, BVA::XUI 2.9, BVA::XACT 1.11, 
Spreadsheet::WriteExcel 2.25


If a script has a problem, warnings and error messages spill out 
down the worksheet (yes, you can cancel a worksheet process), 
becoming breadcrumbs for the warnings are friends path back to 
functioning code.


Perl, the language I most enjoy working in, provides a strong 
set of debugging, profiling, and testing tools. I can invoke 
these with a few lines kept on the worksheet but normally 
commented out. Again, the results from the profiler or test 
suite print out on the worksheet for study.


There's more to how I do all this, but I think you can see that 
this satisfies the requirements of my problem statement quite well.


Most of what I describe could be done on the command line, 
especially by someone adept at using all the tools of that 
environment to pipe output to files, capture warnings, tweak 
input variables, etc.


But I've come to enjoy how handy it is to 

Re: Perl sub curiosity

2010-01-21 Thread Bruce Van Allen

On 2010-01-22 at 5:06 PM, johndelac...@gmail.com (John Delacour) wrote:

In writing a Perl script I used a subroutine CHECK() and had to 
change it because it seems to be a reserved name -- it appears 
syntax-coloured blue unlike any of my other subroutines. I do 
not generally use the  prefix to run a subroutine, 
incidentally.  That's probably very very bad, but doesn't seem 
to be at the root of my problem.


I can run this without an error:

#!/usr/local/bin/perl
use strict;
CHECK();

though goodness knows what it means, but

#!/usr/local/bin/perl
use strict;
CHECK();

throws an error (Undefined subroutine).

Both are coloured.

Can someone tell me what I'm missing?


You're probably familiar with BEGIN { ... } blocks.

BEGIN, INIT, CHECK, and END are a words reserved in Perl to name 
built-in subroutines that execute at specific stages of your 
program's operation.


I'm guessing this gives you enough to explain what was 
happening, or to dig further in the right direction.





   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Re: Using Tab to indent lines

2010-01-22 Thread Bruce Van Allen

On 2010-01-22 at 3:33 PM, p.chapman...@gmail.com (Carpii) wrote:


If I select a block of text in BBEdit, and press Tab, it indents it
(which is what I want).

Theres an option in preferences to dictate whether this happens I
think, and obviously its enabled.

But if I select a single line of text, and hit Tab, it replaces the
whole line with a Tab character.



Is there a way to work around this, as its very inconsistent since Ive
already told BBEdit Id like Tab to indent text, not replace the
selection


When you select a single line, be sure to select the end-of-line 
character (return, linefeed, etc). Then when you press Tab 
(assuming the setting you mentioned above), the line will indent 
the way a block does. Otherwise, the selected portion of the 
line will be replaced by the tab, as expected.


One way I make it easy to select the end-of-line character is to 
enable Preferences - Editing: General - Allow single-click 
line selection.


HTH



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Fwd: Re: Are you working on a next bbedit version?

2010-04-20 Thread Bruce Van Allen

On 2010-04-20, LuKreme wrote:


On 19-Apr-2010, at 09:35, stratboy wrote:

  Are you? Is there a release date?


Wasn't there a new release just a few months ago?

9.3.1?


Oh, there you go, being factual and logical.

Unfortunately, the OP has caught a potentially serious case of 
an ITD the leads to addiction to whatever is coming next instead 
of what is here now.


A key symptom is that the OP didn't have a feature request or 
bug-fix in mind. Just a new version.


This disease can cause unfortunates to seek constant stimulation 
from technological change, distorting perceptions so that each 
incremental improvement is seen as potentially revolutionary, 
only to be followed by an emotional and physiological crash when 
life turns out to be the same after all. Partial recovery 
occurs, but another cycle of excitement and crash usually 
commences within a short time.


That this addiction is pernicious, and as with many addictions 
alters thought processes, is shown by a simple test that may be self-administered:


Consider the ancient wisdom: Want what you have. Does this 
ring true to you, or as soon as you read it did you start 
thinking of why it's wrong, or doesn't apply to your (my) desire 
for the stimulation from the new?


(It is certainly wrong for those who have lives limited by 
racism, sexism, exploitation, environmental degradation.)


Computers and software have never been more powerful and 
versatile, and of course by the nature of semiconductor 
technology and the potential permutations of software languages, 
they will get more so in perpetuity.


But the only time we get to use these things is now. So get back 
to work/play with the means at hand, instead of wasting cycles 
and delaying your life for what might come next.




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Re: Upgraded from 8.72 to 9.5 and have a question about search from top

2010-04-29 Thread Bruce Van Allen

On 2010-04-29, Robert A. Rosenberg wrote:
At 20:29 -0700 on 04/28/2010, Bill Rowe wrote about Re: 
Upgraded from 8.72 to 9.5 and have a question about se:



On 4/28/10 at 5:53 PM, dougler...@gmail.com (douglerner) wrote:


I just upgraded from BBEdit 8.72 to BBEdit 9.5.



In the new search, I notice I can't do the CMD+T to force the search
to start from the top of the file anymore.



Is there a way to do that?



I know about the wrap option, but that's different.


I don't have an answer to your question. But I am curious as 
to why you see the wrap option as different. It you start a 
search from the start (top) of a file it obviously searches 
the entire file stopping for a hit. If the wrap option starts 
from where the cursor is and searches through the file 
wrapping end to start till you get back to where the cursor 
is, isn't the end result the same? What am I missing here?


If the string you are looking for is the only occurrence or you are
looking for all the occurrences, there is little difference since both
will find the string. OTOH, if you are looking for a specific
occurrence out of a number of occurrences (and know that it is or near
the first occurrence) you want to start at the top and not wherever you
current are (as would be the case with wrap). With wrap in this case,
you would need get each occurrence displayed for you and need to reject
them to go to the next in your search (and only find it once you have
reached the end of the file and wrapped back to the top).


I've gotten quite used to the new search/replace window; among 
other things the 
wapping-search-starting-from-wherever-the-cursor-is is now what 
I expect; there is a distinct visual signal when the wrap 
happens, going either direction, so it's easy to be sure of not 
missing something.


But for those cases when I do want to find the very first 
occurrence, I wrote a little applescript (wrote as in found an 
example somewhere) and attached a key combination to it:


tell application BBEdit
activate
find text of selection searching in every text of text 
document 1 options {starting at top:true, wrap around:false, 
backwards:false, case sensitive:true, match words:false, extend 
selection:false} with selecting match

end tell

With the options set this way, BBEdit will jump to the first 
occurrence of whatever was selected, and select it. You can then 
use the usual Use selection for find and Find selected text 
commands to jump through the file to the next occurrences. If 
you see the wrap signal, you've perused the whole file.


I bet the script could directly incorporate Use selection for 
find, saving a step...


I set Control-F as the key combination to call this script, 
because that's close to Command-F for find.


HTH.


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Re: Multiple HTML tag selection and delete with BBEdit Mac

2010-06-03 Thread Bruce Van Allen

On 2010-06-03, Nick A wrote:


Now I'm stuck with a search window that lists all the tags that were
found, but I don't know how to delete them all. Intuitively I want to
select all and delete, but it doesn't seem to work like that. Using
the find/find all/replace dialog box doesn't seem to be able to do it
all at once. How do I do this all at once?


You need to study BBEdit more. There (of course) is a Replace 
All command.


BUT before you do that...

What people have been suggesting is using the search pattern for 
the table element markup and replacing each instance with '' -- nothing.


Before you do that, you might consider replacing table element 
markup with some easily identifiable character(s), allowing you 
to more easily see where the former table markup was, and also 
use additional find/replace steps to begin putting your 
non-table markup/css in place.


If I were dismantling tables with this brute force I have to do 
it fast approach, perhaps not knowing for sure yet exactly how 
the contents of the tables will be marked up in the new version, 
I would at least throw in some white space. Something like 
replacing table tags with two blank lines, tr tags with one 
blank line, and td  th tags with a newline and a tab 
(\r\t). That would at least let me see the what was left in 
separate pieces.


You could just as easily replace table tags with div tags, 
tr tags with p, and td  th with span. Taking this 
further, try:

  replace table tags with div class=former_table
  replace tr tags with p class=former_row
  replace th tages with span class=former_heading
  replace td tags with span class=former_cell

You're not stuck forever with those classes named former... -- 
you can always do find/replace on them once the stuff being 
marked up is integrated with your new css/markup scheme. In the 
meantime, though, you have every piece of the former table's 
content marked up with style-able structures.


But this really depends on whether the table's organization of 
its contents maps closely to how you want to organize the 
content in the new version. It probably won't map well, and 
you'll have to do some hand work rearranging the content to work 
with css layout. Then I think your job is simpler if you do 
something like what I've suggested in above with white space.


HTH



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Re: Scrolling while selecting - very slow.

2010-08-11 Thread Bruce Van Allen

On 2010-08-11, tpneumat wrote:


Ah yes.  Not sure why I don't just do that.  Thanks!  Guess it comes
from doing things in VI.

Only thing is, mouse is required to do what you are suggesting.  So,
there is still no mouse-less way of selecting large chunk without slow
scrolling, right?  I suppose its tied to key repeat rate, but mine is
on max for a mac, and it does slow down even more during selection.
Can live with it and change my ways i suppose.



Page Down works from the keyboard. Control-Down Arrow scrolls 
down (might be a setting, but I can't find it right off). Look 
into Extend Selection in the manual.


Also, people report that scrolling is slower if they have Soft 
Wrap on. Whether this would help you depends on what type of 
text you're writing...


HTH



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Re: Saved window state frustration

2010-08-13 Thread Bruce Van Allen

On 2010-08-13, Brian Frick wrote:


No... I have tried that.  I can save default window and any new
window behaves properly.  It's only windows that aren't saved in the
default-window configuration that are re-opening in the last saved
state.


Going back to your original post,


When I open a window and do a compare, I have a window left, a window right, 
and a window across the bottom that shows the diff results.  If I make changes 
and save a document, next time I open the window, it is opened in the same 
state -- either left or right with space along the bottom.


I find that this problem does NOT happen if I close the diff 
results window first. Try that.






   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.


Re: Grep Help.

2010-09-09 Thread Bruce Van Allen

On 2010-09-09, m i l e s wrote:


Hi.

I have data from a OUTLOOK export that's been corrupted.  It 
appears that Outlook is putting extraneous data from the NOTES 
field into the TITLE field of the export, which ends up column 
shifting the resulting records that follow the first record.


Look at the sample data below: its column shifted the following:
  Low Normal  Web Page

Down to the next line, and anything in the notes field gets stuffed
into the Title field, where there should be nothing at all.

How would I fix this with Grep ?


It's difficult to see the problem because email has broken your 
lines up.


A few things to try:

1. First, If you can go back to Outlook and re-do the export, 
pay attention to any options for line breaks, encoding, etc. 
Also, when there, see if this record has anything odd in it, 
such as extraneous quote marks, paragraph returns, etc.


2. Open the exported file in BBEdit with various encodings (see 
File menu Re-Open with Encoding. Might reveal something.


3. Viewing the file in BBEdit, choose Show Invisibles, and look 
for strange characters (sometimes shown as red upside-down 
question marks), etc). If they seem to be located near the 
problems, you might get somewhere by searching for them and 
deleting or replacing with something that doesn't force a new line.


HTH -- Just guessing



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Still puzzled by Find Differences: Compare Folders

2010-10-09 Thread Bruce Van Allen

On 2010-10-09, Dave wrote:


Maybe I'm missing something, but I have never understood the
usefulness of the Only in new and Only in old lists. When I first
started using this feature I assumed there would be some way to copy
these files into the same relative path in the folder where they
didn't exist, but if there is I still haven't figured it out,


I too would like to see commands such as Copy to New or Copy 
to Old.


I have found that I can select one or more files in the Only in 
New/Old list and drag them into the Finder folder I want them 
in; not always convenient due to the way I have the Find Diffs 
windows fill my monitor, but it does put copies where I drag them.


I'm cc:ing this to BB support, with your complete message quoted below.


Maybe I'm missing something, but I have never understood the
usefulness of the Only in new and Only in old lists. When I first
started using this feature I assumed there would be some way to copy
these files into the same relative path in the folder where they
didn't exist, but if there is I still haven't figured it out, and the
documentations doesn't say anything about it. There doesn't even seem
to be any way of getting information about the locations of these
files without opening them, and the only way to copy them into the
other folder is by using Save As... or Save a Copy... for each
file, which is not only tedious, but it doesn't preserve the creation/
modification dates of the original files. So far about the only use
I've been able to make of these lists is to open the files, click the
Reveal in Finder icon on each one, then open another Finder window,
navigate to the other folder, then copy the selected file.

Am I just expecting too much of BBEdit by expecting it to be more
helpful in this process, or is there a feature that I'm overlooking?




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: search: not beginning-of-line followed by string

2010-12-15 Thread Bruce Van Allen

On 2010-12-15, Dave Ratcliffe wrote:


I note at the end of the Searching with Grep section of the online
help manual that O'Reilly  Associates' Mastering Regular
Expressions, is recommended. Is there anything that any of you think
is superior to this as a comprehensive reference for grep and regular
expressions?


That's the best. Worth investing in the latest edition (third, 
2006), but a used first (1997) or second edition can teach most 
of it.


In my own experience and observation of others, you can probably 
expect to work your way up through levels of regex power. A 
worthy height to reach is facility with look-ahead and 
look-behind assertions, both positive and negative (see Ronald's suggestion).


Other resources:

O'Reilly also has a pocket reference, and I see they now have a 
Reg Ex Cookbook but I haven't read it.


As additional learning tools, check out a swell pair of features 
in BBEdit's search dialog:


- it caches recent search expressions (see the clock icon); and
- you can save and name your regexen for convenient future use 
(the 'g' icon).


These features allow you to rapidly try variations without 
losing previous tries. I save regexen to use for tasks I expect 
again and sometimes just to enjoy the satisfaction of composing 
one that powerfully handled a problem.


BBedit also gives you the ability to properly escape characters 
as needed for use in regular expression searches, with the menu 
command Search - Use Selection for Grep Search. This can be a 
guide in learning when to escape which characters when creating 
regular expressions by hand.


Finally, this BBEdit list has some master regex adepts, among 
them some who responded to your post, and is a friendly place 
for learning (provided that you try it first on your own :-).


HTH


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Scratchpad like window for Unix Script Output?

2010-12-21 Thread Bruce Van Allen

On 2010-12-21, David Eves wrote:


I'm looking for a way to have the Unix Script Output Window do two things:



...



I have looked through the BBEdit User Manual and do not see this
mentioned under Scratchpad or Unix Scripting.


Hold down the Option key and select the Run... command from the 
#! menu. The options for Output to: and Output Options: 
provide close to what you are asking for.



a) always open in a new window


Output to:
  √ New Window


b) behave like the Scratchpad when modified, that is, never prompt to
save when closing the window or quitting BBEdit.


Output Options:
  √ Save After Writing

Once you choose options, they 'stick' for the next time you run 
a script.


HTH.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Scratchpad like window for Unix Script Output?

2010-12-21 Thread Bruce Van Allen

On 2010-12-21, Matt Martini wrote:


On Dec 21, 2010, at 2:49 PM, Bruce Van Allen wrote:


On 2010-12-21, David Eves wrote:


I'm looking for a way to have the Unix Script Output Window do two things:



...



I have looked through the BBEdit User Manual and do not see this
mentioned under Scratchpad or Unix Scripting.
  Hold down the Option key and select the Run... command from 
the #! menu. The options for Output to: and Output

Options: provide close to what you are asking for.



a) always open in a new window

  Output to:
 √ New Window


b) behave like the Scratchpad when modified, that is, never prompt to
save when closing the window or quitting BBEdit.

  Output Options:
 √ Save After Writing



This doesn't do what was intended (or at least what I want to 
see),  I want the Unix Script Output Window to always start out 
blank.   With your

method above the output of commands would be saved (appended) for
every command.  Not ideal.  I want a blank slate every time.


Did you look at the Options dialogue? There is also a choice for 
Clear Before Writing.




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Bruce Van Allen

On 2011-02-08, Christopher Stone wrote:


Hey Folks,

Is there a way to execute a line in a worksheet via Applescript?

I've got a script that preassembles a command and opens it in a 
new worksheet, and I'd like for the script to execute the line 
as well to save me a step.


Not sure if this fits your needs, but...

I use an applescript (called by an assigned key combination) to 
select the relevant lines of my worksheets, so all I have to do 
then is press Enter (not Return) and the code executes with 
whatever params I've supplied. The script also clears away any 
output left from the previous execution.


To do this, I use a consistent layout for my worksheets. Here's 
an example from one of my sheets (simplified):


## start BBEdit Worksheet ##
A='Project=SEPT2010'
B='base_dir=/Volumes/MyData'
C='source_file=voter_tabs.txt'
D='crosstab=gender pty_group age_cohort exp_vote_method'

perl /Volumes/LIB/make_cross_tab_summaries $A  $B  $C  $D

#-#-#

...

## end BBEdit Worksheet ##

You can handle input params in other ways; I like using A, B, C, 
... so I can easily provide params in option=value form, then 
hand them to the executable as $ variables (in quotes in case 
there are spaces or other confusing characters within the 
params). Of course, the form of your params may vary according 
to what your executable expects.


The applescript finds the line with '#-#-#', first deletes 
anything below it (previous output), and then selects the 
remaining lines from the top down to and including the '#-#-#'. 
That way when I press Enter, all params and the executable are 
invoked, and the output appears below the '#-#-#' line.


This allows me to quickly try params, see the results and 
possibly do something with them, then go back and quickly 
execute again with different params.  The reason I don't just do 
'Undo' after execution is that I often mess with the result 
output, so undoing wouldn't necessarily give me what I want.


Here is the applescript (watch out for email-induced line breaks):

## start Applescript ##
tell application BBEdit
activate
set mywindow to shell window 1
set lineX to 100
set lineBye to endLine of text of mywindow
repeat with i from 1 to the number of lines of text of mywindow
set linetext to contents of line i of text of mywindow
if linetext contains #-#-# then
set lineX to i + 1
exit repeat
end if
end repeat
if lineX  lineBye then
select text from line lineX of text of mywindow to line 
lineBye of text of mywindow

set the selection to 
end if
select text from line 1 of text of mywindow to line (lineX 
- 1) of text of mywindow

end tell

## end Applescript ##

As I said, I assign a key combination to invoke this script.

It would seem to me that your applescript that preassembles the 
command could create something like the above worksheet layout, 
and then the same script or a second one could do what mine 
above does to invoke the assembled command.


Really, the layout and the form of the params can be whatever 
you want; in your case it might all be preassembled on one line. 
The key thing is to be able to select the executable line and 
its params. You could probably even script the 'Enter' keypress...


HTH





   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Bruce Van Allen
On 2011-02-08, John Delacour wrote:
You do mean document/window, I suppose, and not worksheet, which is an 
Excel thing?

John -- You don't know about BBEdit (shell) worksheets?



   - Bruce
   
_bruce__van_allen__santa_cruz_ca_

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Bruce Van Allen

On 2011-02-08, Christopher Stone wrote:


Playing a bit with your script:


Nice.

I modified the second one to delete starting one character 
later, to preserve the end-of-line after #-#-#, so the output 
starts on its own line. That's the '+ 1'.


tell application BBEdit
  try
tell text of front shell window
  try
delete (characters ((get characterOffset of character 
after (first line where its text is #-#-#)) + 1) thru -1)

  end try
  try
select (lines 1 thru (get endLine of (first line where 
its text is #-#-#)))

  end try
end tell
  end try
end tell

Anyway, best wishes for progress on YOUR script.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: BBEdit livelocks accessing no-longer-mounted SMB volume's file...

2011-02-27 Thread Bruce Van Allen

On 2011-02-27, jwiede wrote:


Anyone else run into this?  I apparently quit BBEdit with a file open
from a volume mounted by SMB.  Now, any attempts to launch BBEdit
result in it launching then immediately going into some livelock
because that SMB volume is no longer mounted (meaning it can longer
access that file).  I'm still testing, but imagine that this issue
will disappear if the volume is mounted when I restart BBEdit.

I'm seeing this behavior with BBEdit 9.6.3 on OSX 10.6.6.  Anyone else
seen similar behavior?


Probably doesn't completely solve your problem, but my guess is 
that you have BBEdit's setting checked for Reopen documents 
that were open at last quit (Preferences - Application). From 
the manual:


To override this when launching BBEdit, hold down the following modifiers.

Option:
Suppress startup items only

Shift:
Disable all plug-ins, tools, external services, and startup items

That at least gets you back to BBEdit in a usable state.

HTH.




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Feature requests: vertical split; opening different documents in a split window

2011-02-28 Thread Bruce Van Allen

On 2011-02-27, Terje Dahl wrote:


Yes, vertical split would be very useful.


I agree. Did either you or the OP send this request to Barebones support?

[See the bottom of every message on this list:
   If you have a feature request or would like to report a 
problem, please email supp...@barebones.com rather than 
posting to the group.

]

Thanks.


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Feature requests: vertical split; opening different documents in a split window

2011-03-03 Thread Bruce Van Allen

On 2011-03-03, Michael Bradley, Jr. wrote:

Upon your suggestion, I emailed Bare Bones support with my 
feature request.


They responded quite quickly and noted that these features are on their
list of future considerations.


Excellent. That's the way I've seen several great user ideas 
incorporated in this application over the years.


Thanks.


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Feature requests: vertical split; opening different documents in a split window

2011-03-03 Thread Bruce Van Allen

On 2011-03-03, LuKreme wrote:


On 3-Mar-2011, at 15:23, Bruce Van Allen wrote:
Excellent. That's the way I've seen several great user ideas 
incorporated in this application over the years.


All of my great ideas end up with This feature has been in 
BBEdit for 14 years, here's the page number for the manual.


Ah, true -- they're usually ahead of us.

But think of the distraught souls who proposed features that 
have NOT been adopted, such as tabbed windows, variable-width 
columns, and the option to make all ponies visible...




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Change file permissions and ownership.

2011-04-16 Thread Bruce Van Allen
On 2011-04-16, Rich Siegel wrote:
On Saturday, April 16, 2011, Doug McNutt dougl...@macnauchtan.com
wrote:
But. . . BBEdit worksheets don't handle sudo very well because you
have to enter a password.

Click the padlock icon in a worksheet window's tool bar to turn on
`sudo` and then turn it of when you're done...

Yow! Hadn't noticed that. One more great feature of BBEdit worksheets...

Thanks.


   - Bruce
   
_bruce__van_allen__santa_cruz_ca_

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Possible, worthwhile to port Solarized for use with BBEdit?

2011-04-17 Thread Bruce Van Allen

On 2011-04-17, Govinda wrote:


I also changed Color:SecondaryHighlight equivalently, but honestly I
am not sure even how to see in a doc what is
SecondaryHighlight. (?)


I think that shows when you have some text selected in a BBEdit 
window, and then activate a different window or application. 
Anyone else know?



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: GREP Cleanup

2011-05-10 Thread Bruce Van Allen

On 2011-05-10, Robert Huttinger wrote:


oh!! do I need (link|visited|hover|active) ?


That would work for those. But I suggest that you re-read my 
previous post, in which I suggested that you change only one 
character from the regular expression in your earlier try:


Change the script line that is now
   s/([-a-z ]+:)\s+(.+)/sprintf(%-20s,$1) . $2/ie;
to
   s/([-a-z ]+:)\s*(.+)/sprintf(%-20s,$1) . $2/ie;

The change is the '*' after the '\s'. The '+' made it require at 
least one space after the colon; using '*' allows it to match 
with zero or more spaces. Your sample had no spaces after the 
colon, which is why the original script didn't work for you.


The part of the above that you've been changing stays way more 
general in what it will match if you leave it as '[-a-z ]+' (no 
quotes). This character class includes all lower case letters 
plus '-' and ' '; the '+' after it allows it to match one or 
more times; the 'i' after the last '/' makes the expression 
case-insensitive, so this will also match upper case letters.


Incidentally, this matching stuff ('regular expressions' in 
geek-eze), is described well in BBEdit's manual. BBEdit's 
regular expression matching follows that of Perl (5) quite closely.



bo


On Tue, May 10, 2011 at 4:20 PM, Ronald J Kimball r...@tamias.net wrote:


On Mon, May 09, 2011 at 10:29:55AM -0400, Robert Huttinger wrote:
 s/([-a-z ]+:([^link|visited|hover|active]))\s*(.*)/sprintf(%-32s,$1) .
$3/ie;

FYI, [^link|visited|hover|active] does not do what I presume you think it
does.  [] is a character class, which matches exactly one character.

[^link|visited|hover|active] matches any one character that is not one of
the following: acdehiklnorstv|

Ronald

--
You received this message because you are subscribed to the
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit






   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: GREP Cleanup

2011-05-10 Thread Bruce Van Allen

On 2011-05-10, Bruce Van Allen wrote:


On 2011-05-10, Robert Huttinger wrote:


oh!! do I need (link|visited|hover|active) ?


That would work for those. But I suggest that you re-read my previous post, in 
which I suggested that you change


Oops I missed where you had that (link|visited|hover|active).

I don't think specifying those was why your earlier try wasn't working.

See my previous post.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: DTD Question

2011-07-11 Thread Bruce Van Allen

On 7/11/11 at 9:38 PM, ja...@amug.org (Jack Stewart) wrote:

I am attempting to modify a website designed by a third party with a
DTD of DOCTYPE HTML PUBLIC -//SoftQuad//DTD HoTMetaL PRO
5.0::19980907::extensions to HTML 4.0//EN hmpro5.dtd


I agree with Ken. There is no reason to keep the HotMetal DTD. 
It hails from ancient days when proprietary DTDs were more 
common and thought to be useful (they never were; now they're counter-useful).


You might try first substituting the DTD for HTML 4.0.1 
Transitional and fix the twenty errors you get with that, if 
fixing 232 errors seems too challenging at the moment.


But you have a great opportunity to pull the site forward into 
HTML 5 right when use of 5 is rapidly expanding. I suspect that 
the document with a count of 232 errors has a smaller number of 
errors repeated many times, so fixing them all might not really 
be that hard.


Most of HTML 5 is the same as HTML 4.0.1, so the learning curve 
for the transition to 5 is relatively gentle. Furthermore, HTML 
5's newer constructs are mostly optional, so you don't have to 
master them all right now. Steve's link to Dive into HTML 5 is a 
good resource for the doctype question as well as most of the 
rest of the transition:


http://diveintohtml5.org/semantics.html#the-doctype

Browser compatibility is actually less significant than it once 
was. Today's somewhat contrived regime of rapid update releases 
by FireFox, Chrome, etc. is mainly focused on things like 
optimization, security, and embedding media (as well as just 
plain marketing). The developers aren't as much trying to 
compete by inventing non-standard HTML elements. Also, page 
generation tools (which HotMetal was/claimed to be) that still 
insert their own extensions to HTML should be avoided anyway.


Getting over the hump of switching this site to HTML 5 would be 
a learning opportunity, and will also leave the site in a 
condition that readily accepts further features added by you or 
the next person who works on it.




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: BBEdit 10 Color Scheme Issues

2011-07-25 Thread Bruce Van Allen

On 2011-07-25, maf675 wrote:


This is really annoying and should be addressed!


Then I hope you've submitted a report to BB support, as 
mentioned at the bottom of messages on this list. Ideally, send 
them details of what you did and what happened.


If you have a feature request or would like to report a 
problem, please email supp...@barebones.com rather than 
posting to the group.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Per document tab widths

2011-07-27 Thread Bruce Van Allen

On 2011-07-26, Watts Martin wrote:

As near as I can tell, there's no way to adjust the tab width 
for a document at *all* -- you can only change the editor 
default and the per-language setting. I'm surprised, thinking 
about it, that tab width isn't adjustable via the per-document 
Text Options. (And a little surprised those aren't saved with documents.)


What? Those things work over here (BBEdit 10, OS X 10.7, and 
worked for years).


I use this applescript saved in scripts folder, with Control-Tab 
set as keyboard command:


tell application BBEdit
set tabW to tab width of text window 1
if tabW  64 then
set tabW to 4
else
set tabW to tabW + 12
end if
set tab width of text window 1 to tabW
end tell


This allows cycling through increasingly wider tab separations, 
per document. Adjust your increment as desired (that's the '+ 
12'), as well as the maximum (64 here) before it reverts to 
minimum. Tab width is sticky, so a file keeps the last width I set.


HTH.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: How to sync BBEdit to Dropbox?

2011-08-02 Thread Bruce Van Allen

On 2011-08-02, Rich Siegel wrote:


On Tuesday, August 2, 2011, fongd fong.de...@gmail.com wrote:

OTOH, Dropbox support seems hit or miss. For example, it seems that
colour schemes (located in ~/Library/Application Support/BBEdit/Color
Schemes) are ONLY read from ~/Library. If you try to install a colour
scheme into the equivalent location in your Dropbox, it won't be
recognized (well, at least for me they aren't).


Fixed in 3063 and later: 
http://groups.google.com/group/bbedit/browse_thread/thread/118395a8397e0203.


I notice that DropBox sometimes lags in sending items across my 
local network. So when I first tried this by putting my laptop's 
BBEdit folder in DropBox, when I started BBEdit in my desk 
machine, not everything was there. I had to quit BBEdit, and 
wait a bit; then it all showed up when I started BBEdit again.


Also, Rich, is the description above correct, that BBEdit looks 
in DropBox, grabs what it can find there, and then ALSO pulls 
local stuff from ~Library/Application Support/BBEdit?


Thanks.


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Document Info in BBEdit 10

2011-08-02 Thread Bruce Van Allen

On 2011-08-02, LuKreme wrote:


But it switches when nothing is selected which just seems… odd.


On the other hand, logically what else should it say? 0 / 0 / 
0 is correct if nothing is selected.


I suppose it could change to something like Nothing selected ...



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: I already miss the documents drawer (sniff)

2011-08-04 Thread Bruce Van Allen

On 2011-08-04, offtone wrote:


Is there some stand being made about tabs, or why does BBEdit get on
board with the rest of the multi-document applications of this decade
and implement 'em? If only as an option... WAY more intuitive, I find.


Tabbing is not helpful if you have more than a few documents 
open. I prefer the pop-up plus the sidebar doc listing.


YMMV...


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: changes to Find

2011-08-06 Thread Bruce Van Allen

On 2011-08-06, Bill Thayer wrote:

The two separate Find windows don't make much sense; all the more so
that if you change one, the other is changed as well. (The two
separate windows might make some sense if they allowed us to have one
search in a document, the other over a set of document. Even then, not
much.)


I on the other hand like this a lot (and it's not changed from 
v. 9.x). Sometimes I search and replace in one doc, test, then 
decide I want to make the same change in several other docs, so 
it's convenient to have same pattern and replacement in the 
muti-doc dialog.



In the Find window, I used to be able to specify Case Sensitive,
Entire Word, and GREP, Wrap Around, Case Sensitive in the Find
window — with command keys. That's gone


No it's not - the key commands have changed - see the manual or 
a post from BB folk on this list about a week ago.



I used to be able to manage my Find Patterns, from a very handy window
reached thru Preferences.


That's now handled under BBdit - Setup.

I do agree that having Save Pattern at the bottom of the list is sub-optimal...

Did you send you message to Support?

HTH



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Scripts that report information about selected text?

2011-08-10 Thread Bruce Van Allen

On 2011-08-10, rowen wrote:


I'd want to write a script that reports the sum and mean of a column
of numbers that are selected using column selection.

I have a Python text filter that does this now with normally selected
text (working on the first number found on each line), but it writes
the information after the selected text (by echoing the input and then
writing the new info). That technique won't work with a column
selection; there's no obvious place to safely write the results.

I would prefer to open a new window and write the results there. Is
there some easy way to do this? From a Python script?


My Python is minimal, but this would be trivial with regular 
expressions in Perl, without even selecting the column beforehand.


But you might be able to do without going outside of BBEdit -- 
are you familiar with Text - Process Lines Containing...  ?




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Edit multiple documents in split view?

2011-08-10 Thread Bruce Van Allen

On 2011-08-10, jive wrote:


Hello, I understand that you can edit the same document in split view,
but can put different documents in multiple panes? (not unlike notepad+
+ and komodo edit.) Just wondering. This is the only thing holding me
back from purchasing...


See View - Open in Additional Window.

Don't confuse this with View - Open in New Window ...


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: [ANN] BBEdit 10.0.1

2011-08-10 Thread Bruce Van Allen

On 2011-08-10, Rich Siegel wrote:


Good { morning, afternoon, evening },

We are pleased to announce the release and immediate availability of BBEdit 
10.0.1.


Wow. Looking at the release notes for 10.0.1, I just wanted to 
send my congratulations to Rich and the whole Barebones crew!


I'm sure the time since release of BBEdit 10 has been stimulating.

Good work.


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Behavior of Find/Multi file Find - need help changing it

2011-08-11 Thread Bruce Van Allen

On 2011-08-11, Derrick Peavy wrote:


Used BBEdit since mid 90's and version 4.  Great. But these changes
are killing me.

In prior versions (8 and below I think), when I performed a find (CMD
F), the find usually started at the top of the file. Not anymore.


Check the Wrap Around box at the bottom of the Find dialog. 
You'll see a visual when the find wraps around to the first 
instance of what you're searching for.


BBEdit is a language for programmers, so approach what you want 
like a programmer would:


You can write a simple Applescript to move the cursor to the top 
of the file, and add it as a menu-triggered script to the Find 
command. Then whenever you call Find your little script will  
move the cursor up before the find starts. Check the manual for 
Attaching Scripts to Menu Items. There are other ways to do 
this, but here'a an example:


tell application BBEdit
select first character of text document 1
end tell

Finally, here is a similar Applescript that I use -- not 
attached to the Find command but instead to jump up to the first 
instance of what I have selected. I call it with an assigned 
keyboard combo (Control-F but choose your own).


tell application BBEdit
activate
find text of selection searching in every text of text 
document 1 options {starting at top:true, wrap around:false, 
backwards:false, case sensitive:true, match words:false, extend 
selection:false} with selecting match

end tell



But also annoying is the find dialog box staying on screen until I
close it. I use shortcuts when I write code, so I like having the box
disappear.


Just hit Escape to close the dialog or click in your doc window 
to put it in front.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Behavior of Find/Multi file Find - need help changing it

2011-08-11 Thread Bruce Van Allen

On 2011-08-11, Bruce Van Allen wrote:


BBEdit is a language for programmers,


Oops -- didn't mean to say language ...


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Solution for Black Pointer on Dark Background

2011-08-17 Thread Bruce Van Allen

On 2011-08-17, marty wrote:


So, I take it then that BBE doesn't address this issue yet?


Yet? Let's see, this came up on the this discussion group about 
five days ago. Have you actually made a request to BBEdit 
support? Has anyone else?




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: No authenticated open/save in the App Store version

2011-08-18 Thread Bruce Van Allen
Not responding to any particular poster; I just want to ask that 
we not get into another prolonged discussion of the merits of 
getting BBEdit from the App Store vs. directly from Barebones. 
I'm SO bored with this topic; it really reduces the 
signal-to-noise ratio of this list, IMHO.


The App Store serves some people well, and direct purchase from 
Barebones serves others well; obviously Barebones is happy with both.


Some people frequently need authenticated saving and use of the 
BBE CLI tools, others rarely or never. Barebones provides a 
generous solution if you bought from the App Store and only then 
discovered that you need these capabilities.


I also suspect that Apple might entertain a refund if asked; 
they've done such things for me in other situations, such as 
accidental re-purchase of OS X Lion.


Can we just accept differences and let it be?

Thanks.


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Projects and mounted servers

2011-08-18 Thread Bruce Van Allen

On 2011-08-18, SpeedyG wrote:

I have projects that have folders that are on mounted server volumes.
It used to be that as soon as I connected to the server volume the
folders(marked in red) were accessible(turned black).


I had a problem that sounds similar, fixed in BBEdit 10.0.1. 
Have you upgraded? (Not the beta releases, the actual 10.0.1 update.)



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: GREP/Regex for dummies?

2011-09-06 Thread Bruce Van Allen

On 2011-09-06, Jefferis Peterson wrote:


Find: ^([A-Z0-9]+) (.*) [0-9]+$
Replace: \1\t\2

But without the delimiters, it processed the page perfectly.
Thanks for my first lesson in depth OBI-WAN :-)


A guess is that the the non-matching lines have some extra 
whitespace at the start or end of the line. Unless I'm quite 
sure about it, I don't assume that a line has no extra 
whitespace, especially at the end. So when using ^  $ in a 
pattern, I tend to include an expression for zero or more 
whitespace characters, \s*, or zero or more tabs or spaces, [ 
\t]*, thus:


Find: ^\s*([A-Z0-9]+) (.*) [0-9]+\*s$
Replace: \1\t\2

An additional note is the dot . matches any character EXCEPT 
the newline (\n or \r), unless you tell it otherwise*. If that 
weren't the case, without the ^  $ the above pattern would find 
ONE match: everything from the first id # to the description of 
the last item in the list.


(*As you move up in levels of regex , you'll encounter pattern 
modifiers, which do things like allowing . to match newline 
characters or making character matches not case-sensitive.)


HTH


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Code folding breaking? (php)

2011-10-17 Thread Bruce Van Allen
On 2011-10-17, BenJ wrote:

So switching to php is fine in this case as a workaround - but I'm
still curious to know why the highlighting is limited when using the
HTML language..

Just for sanity, have you done a syntax check lately?


   - Bruce
   
_bruce__van_allen__santa_cruz_ca_

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Code folding breaking? (php)

2011-10-18 Thread Bruce Van Allen

On 2011-10-17, BenJ wrote:


I had a look at the syntax check, and
it looks like what's going on is that some php strings that contain
html markup are confusing the html parser and causing BBEdit to think
there are syntax problems where there actually aren't.


When you get a chance, you might want to send a sample of that 
to Barebones support, to see whether they can tweak the parser 
to account for it.


Appears that mixed-language files are increasingly part of the 
fun for many of us...



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Search and replace based on a custom dictionary file

2011-10-27 Thread Bruce Van Allen

On 2011-10-27, Roland Küffner wrote:
My idea was to do it with some kind of dictionary file. In it 
each line would contain a single search replacement pair 
separated by tabs. Just like:


old termtabnew term
some other random old texttabanother replacement


I picture a simple and flexible Perl script, but first, two questions:

1. Would it be the case that you would replace EVERY instance of 
one of your target terms with its replacement term?


2. Typically, how many terms would be replaced -- order of 
magnitude: 10, 100, 1000?


Script coming later this morning, unless someone beats me to it 
(calling you out JD :-)




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: BBEdit 10.1.1 (3127) pre-release

2011-12-12 Thread Bruce Van Allen

On 2011-12-12, Govinda wrote:


*   [226751] Made a change to reduce the amount of
     workplace-inappropriate daydreaming done while the
application is idle.


That made me laugh ^^^  :-)
Is daydreaming a real technical term for some real BBedit behavior?


Well, in a sense. It's one of the hazards that show up after 
you've reached Level III in BBEdit. The first hint is glimpsing 
ponies around the edges of your field of vision when you pause typing...


HTH


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Select part of frontmost document

2011-12-24 Thread Bruce Van Allen

On 2011-12-24, Phil Dobbin wrote:


Hi, all  season's greetings :-)

I've got a file  I'm wondering is there a way to select all the text
between line 1  line 1217 so it can be copied to the Clipboard rather than
dragging the cursor across it (I do this quite often on several files that
are shared across the LAN but not often enough nor regular enough to be able
to run a script, etc)? They're generally .txt files.


Here's a find pattern that selects the first N lines in BBEdit:

\A([^\r]*\r){N}

So you would use:

\A([^\r]*\r){1217}

At minimum you could save this search pattern in BBEdit's find 
window. You could also script it, perhaps with a prompt for how 
many lines to select.


HTH




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: code folding in Perl

2012-01-04 Thread Bruce Van Allen

On 2012-01-04, Thomas wrote:


Should the automatic code-folding work in Perl?  None of my legacy
perl scripts will show the folding triangle in the gutter except for
function names.  It would be nice if it work as in Python.

Is there a certain style I need to follow for it to parse and fold
correctly?


It's worked out of box over here for years. Perhaps you don't 
have Perl files recognized (by suffix) under Preferences - Languages?


Otherwise send an example to the list or to support.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: How to invoke paragraph symbol in BBEdit?

2012-01-05 Thread Bruce Van Allen
On Jan 5, 2012, at 3:29 PM, Bib aro...@gmail.com wrote:

 Hi-I'm trying to find and replace paragraph characters. I can see them
 but I can't seem to create the paragraph symbol in the Find and
 Replace function in BBEdit. What are the keys from the keyboard to use
 to get that symbol? I tried ^p but it had no effect.

Do you mean the end of line character? That would be \r (no quotes) in a 
file opened by BBEdit. Or do you mean the backwards P symbol? If that, try 
selecting it and copy-paste or use a Search menu command to put it in the Find 
dialog.

Best Regards,

   - Bruce

_bruce__van_allen__santa_cruz_ca
 
 
 -- 
 You received this message because you are subscribed to the 
 BBEdit Talk discussion group on Google Groups.
 To post to this group, send email to bbedit@googlegroups.com
 To unsubscribe from this group, send email to
 bbedit+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/bbedit?hl=en
 If you have a feature request or would like to report a problem, 
 please email supp...@barebones.com rather than posting to the group.
 Follow @bbedit on Twitter: http://www.twitter.com/bbedit
 

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: App hangs when doing multi file search

2012-02-16 Thread Bruce Van Allen

On 2012-02-16, ltempest wrote:


My BBEdit app hangs when I try and do a multi file search.


Just checking: what are you searching on? Some search patterns 
match too much if not carefully composed.




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: bbedit project files + other files on same fullscreen

2012-03-23 Thread Bruce Van Allen

On 2012-03-22, fint82 wrote:

I have a bbedit project created. ...

Say while making those changes I want to make some notes on a scrap
file that I save to /tmp or desktop. Right now when I create that new
file it brings me to a New Fullscreen window. I just want the new file
to live on the same tier as the project folder in the same fullscreen.


Check this out: BBEdit has a scratchpad available any time, AND, 
each project automatically gets its own scratchpad. Look in the 
lower left corner of the project window. This might serve your needs.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: PageUp/PageDown does not work properly in 10.1.1

2012-03-26 Thread Bruce Van Allen

On 2012-03-25, Erni Wogernom wrote:


It looks like version 10.1.1 does not have working PageUp/PageDown
functionality,


Those work fine over here, and they do just what Page-Down and 
Page-Up do on other Mac programs - move the page view a whole 
screen* but NOT the text cursor.


*MS Word doesn't move a whole screen by default, but can be set to.


which is kind-of unexpected for such advanced text
editor. Option+up/down just move cursor to top/bottom line (which is
useless btw) instead of jumping up or down one screen while keeping
relative cursor position on screen.

Could you please fix this?


I can't. Did you send your complaint to support?







   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: BBEdit strips spaces from the ends of my lines when it saves the file

2012-03-27 Thread Bruce Van Allen

On 2012-03-27, Philip Sharman wrote:


I can't see any preference that controls this, and I can't find anything on
the web or in the mailing list.


Keep looking, namely at Preferences-Test Files-Strip Trailing Whitespace.

HTH


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Latency issues

2012-04-04 Thread Bruce Van Allen

Do either of you have SSDs in your machines?

I recently tried installing an SSD as the boot drive on an MBP, 
installed latest Lion, and experienced stalling issues very 
similar to what you describe. My observation was that with 
system  software running on the SSD, the semi-freezes would 
occur connected with accessing files from HDDs or something 
online. So I'm picturing some sort of speed mismatch between the 
SSD and whatever it draws from the HDD/remote source.


[But note that I'm not done trouble-shooting my SSD with the 
vendor, and suggestions for me about that would be OT for this 
list. But if a hardware feature is in common with a behavior 
problem in system or software, I think it's worth mentioning 
here as an avenue to explore.]


On 2012-04-04, Gribnif wrote:


This sounds somewhat similar to a problem I have been having since I
upgraded to version 10 in October.

In my case, I am using NFS, and the lockups are more unpredictable.
They only happen 2-3 times per day, and last up to a minute.

I have already contacted tech support about it, and sent them logs
from Spin Control. In my case, the problem seems to be caused by the
large number of documents I have open, with the Soft Wrap option
turned on. Using this information, they did correct one part of the
bug, where it could be directly induced by resizing a project window;
this would cause BBEdit to try to rewrap every open document in the
project.

But the random lockup is still there. When it happens, I can see all
the little grey X's next to the open documents disappear, and watch
them slowly reappear, as BBEdit rewraps them all.

I have not found a way to reliably cause this type of rewrap to occur,
or a way to prevent it (other than turning off Soft Wrap for every
document, which is not an option for me.) It happens at random times,
which are not related to anything else happening on the Mac or the NFS
server.




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Replace All key equivalent has stopped working

2012-04-06 Thread Bruce Van Allen

On 2012-04-06, Ken B wrote:


I'm stumped.

When I have a Find/Replace dialog open, I can press Command-= to
Replace, but Command-Option-= to Replace All does not work. It used to
work.

If I look at the Preferences for key equivalents, the Replace and
Replace All key equivalents are checked, meaning they should be
active, and also grayed out, meaning I can't change them. (I don't
want to change them, but I don't know why they can't be changed.)


a. But you can change them, even if gray. Double-click on the 
key combination.

b. Is the key combination for change all what you want?


In most dialogs, if you hold down the Command key, you see the
keyboard equivalents displayed. But not in my Find dialog (or the Find
Multiple dialog).


Now it's the Control key.

HTH


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: How to expand tabs to align text

2012-05-21 Thread Bruce Van Allen

On 5/20/12 at 9:28 PM, zoomc...@gmail.com (zoomclub) wrote:


I'm pasting a lot of column based test from a spreadsheet and it would
be great to have all the tabs align after pasting the data into
BBEdit. I saw an older script called Entable but I do not think it
works in the latest BBEdit I recently upgraded to.

Please let me know if there is a way for me to align text that
contains tabs, thanks.


There isn't a way to have columns of different widths. My 
workaround is this applescript, which allows me to quickly 
adjust the tab width with a keyboard command. Repeating the 
command cycles the tab width through successively wider columns 
until it hits a maximum (64), then it reverts to default width.


tell application BBEdit
set tabW to tab width of text window 1
if tabW  64 then
set tabW to 4
else
set tabW to tabW + 12
end if
set tab width of text window 1 to tabW
end tell

Save this script (in Script Editor) to the BBEdit folder in your 
Application Support folder in your Library. Then assign a 
keyboard command via BBEdit's Scripts menu.


HTH.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Content of default shell worksheet

2012-05-27 Thread Bruce Van Allen

On 5/27/12 at 5:07 PM, olivertay...@me.com (Oliver Taylor) wrote:

I while ago I deleted the default content of a new shell 
worksheet (don't ask how or why), and now I wish I hadn't.


Is there a way to restore it? Does anyone have a copy?


Looks like the default lives at:

~/Library/Application Support/BBEdit/Stationery/Default 
Worksheet Stationery.worksheet


I also see the same thing at:

~/Library/Application Support/BBEdit/Unix Worksheet.worksheet

which is what you get when using the Window menu: Show Unix Worksheet.

Is that one also hosed?

I don't want to attach a file to the whole list, so if you still 
need it I could send it directly.







   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: BBEdit looks quite bad on Retina MBP

2012-06-16 Thread Bruce Van Allen

On 6/16/12 at 5:54 AM, ne...@neiltiffin.com (Neil Tiffin) wrote:
Yep, this modern api originated in OS 8.5, was marked as 
legacy in OSX 10.6, is carbon based (IIRC), and will be 
deprecated in 10.8.  Oops.


OMG -- you mean all this time I've been using BBEdit its text 
rendering has been done by less-than-the-latest technology?? And 
in the future that technology will be deprecated???!!!


This must be a severe blow to those suffering from the 
technology disease -- you now, needing a new product the 
moment they heard about it, feeling depressed as soon as a 
faster model of their current computer is released, always 
focused on what will come next rather than on what they can do 
with what's available today.


Don't mean to sound critical of Gabriel or Neil, but IMO these 
two posts don't help the OP or any other BBEdit users (no one's 
running 10.8, for one thing). They just feed the disease, 
stimulating more craving for updates, spreading the idea that 
BBEdit is somehow defective or behind the times.


The OP had a genuine problem, and it's still not clear to me if 
it's due to BBEdit, Lion, the MBP Retina Display, or the OP's 
own settings.


Has anyone else with a Retina MBP had the OP's problem (poor 
text rendering)?




On Jun 15, 2012, at 9:01 PM, Gabriel Roth wrote:



On 6/15/12 at 2:49 PM, sie...@barebones.com (Rich Siegel) wrote:

No; we're using ATSUI, the other modern rendering API.



An article at

http://www.appleinsider.com/articles/12/04/18/
apple_issues_xcode_44_developer_preview_3.html

states:

The [Xcode release] notes also cautioned that performance of ATS
APIs will suffer in OS X 10.8 because the ATS.framework is being
deprecated. Developers are instructed to replace all their ATS code
with CoreText as it will be removed in future OS X releases.




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: File Drawer

2012-06-28 Thread Bruce Van Allen
On 6/28/12 at 4:06 PM, krem...@kreme.com (LuKreme) wrote:

 I can't find how to disable the file drawer from ever appearing. I
 don't mind it on my desktop with 2x24 1902x1080 dispalys, but I
 absolutely detest it on my MacBookPro, so how do I prevent it from
 showing up?

Try:

defaults write com.barebones.bbedit AlwaysShowFileList -bool NO

Then quit and re-start BBEdit if it was running.

HTH


   - Bruce
   
_bruce__van_allen__santa_cruz_ca_

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: grep replace string puzzle

2012-07-02 Thread Bruce Van Allen
On 7/2/12 at 5:39 PM, ja...@me.com (Jeffrey Jones) wrote:
 Oops. \11_ looks like sub-string number 11 rather than 
 sub-string 1 followed by a literal 1.

[whole quote below]

Try \01 instead of \1.


 I encountered a grep replace string conundrum this afternoon.
 
 I had some strings ns_, ms_, or ns_. I wanted to insert a digit
 1 after the s, i.e., ns_  ns1_, ms_  ms1_, hs_ 
 hs1_.
 I started to write
 
 Search:   ([nmh]s)_
 Replace:   \11_  … Oops. \11_ looks like sub-string number 11 rather than 
 sub-string 1 followed by a literal 1.
 
 My solution was
 
 Search:   ([nmh])(s)_
 Replace:   \1s1_
 
 But what if the s wasn't there? Suppose I had n_  n1_, etc. How do you 
 add a digit after a saved sub-string?
 


   - Bruce
   
_bruce__van_allen__santa_cruz_ca_

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: BBEdit looks quite bad on Retina MBP

2012-08-01 Thread Bruce Van Allen

On 8/1/12 at 12:37 AM, harald...@gmail.com (Hugin) wrote:


Any particular reason why my posts are being systematically deleted???
Someone wants me to leave the group, or what?


I'm seeing all of your posts of this message, so it doesn't 
appear they're being deleted...




   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: grep help

2012-08-06 Thread Bruce Van Allen

On 8/4/12 at 9:20 PM, katesglad...@gmail.com (Steven) wrote:


I am trying to remove a date string from an SQL file.


From an SQL database file? Are you searching for text directly 
in that type of file? Which SQL database management system are 
you using?


??


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit





Re: Grep pattern for multi line /* ... */ blocks

2012-10-01 Thread Bruce Van Allen

On 9/30/12 at 1:05 PM, fredsays...@gmail.com (kt) wrote:


Thanks Kendall I'll check out those compressors

I tried the grep, but it matched the entire contents of the 
file. There were only 2 lines left after it was done.

I'll try tweaking it a bit more.


One direct solution:
Find: (?s)\/\*.*\*\/\r

The (?s) lets the . match newlines.


Except that it matches from the first instance of /* all the 
way to the last instance of */. It would appear to work fine 
if there was only one /* ... */ enclosed comment in the text 
you're searching.


The pattern needs to use non-greedy matching:

Find: (?s)\/\*.*?\*\/\r

The second question mark is part of the sub-expression .*?. 
This means match zero or more of ANY character -- including 
newlines, because of the (?s) invocation -- until the VERY NEXT 
match of the next thing in the pattern, which is an escaped 
asterisk \*.


HTH


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit





Re: BBEdit No Longer Opens Files in Transmit FTP

2012-10-04 Thread Bruce Van Allen

On 10/4/12 at 7:16 PM, pwen...@gmail.com (Paul Wenzel) wrote:
I'm having the same problem with Textmate, which I have been 
using in tandem with Transmit for YEARS. I'm also using OSX 
10.8.2. It's completely disrupted my whole workflow. Super frustrating.


This sounds frustrating. If it's of any help, I am having no 
problem (so far) with Fetch opening remote files for editing 
with BBEdit; OSX 10.8.2, BBEdit 10.5beta.


Fetch isn't free any more, but I see there's a free 15-day 
trial; I have no connection except for using it forever.



On Wednesday, October 3, 2012 8:08:49 PM UTC-5, Patrick Woolsey wrote:

At 20:09 -0400 10/03/2012, Tim Harrison wrote:
Is there any reason it would have started out of the blue? It 
just started yesterday and I'm pretty sure I updated to 
10.8.2 some time before yesterday.


Yes; the problem is sporadic, so you just didn't hit it before.
In addition, why would it only cause a problem with BBEdit 
but not with other software like Sublime 2?


Because files get handed off to them via a different mechanism.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit





Re: Drag files from within BBEdit to Find Differences dialog

2012-10-19 Thread Bruce Van Allen

On 10/19/12 at 10:08 AM, fran...@cherman.com (Frances Cherman) wrote:


Yes, this works, but only if both files are in your Project window.
Sometimes they're not.


True, but don't forget the more broadly useful Compare Two Front 
Documents command. Control-clicking in the file list of a 
browser or project was the workaround to get this facility when 
both docs are in the same project/browser window, so only one 
could be Front.


I assign a keyboard command to Compare Two Front Documents, and 
that's by far my most frequent way to invoke comparison of two docs.



On Thu, Oct 18, 2012 at 9:51 AM, Gribnif goo...@dwilga.gotdns.org wrote:


Personally, I find it easiest to Command-click on the two files I want to
compare, then Control-click (or right-click) to get the contextual menu. In
there, you'll find Compare.



   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit





Re: Sequential numbering

2012-10-23 Thread Bruce Van Allen

On 10/23/12 at 10:28 AM, johndelac...@gmail.com (John Delacour) wrote:


On 23/10/2012 10:43, Stuart Gilson wrote:


How do you refer this perl script to a file or files?


The script takes the whole text of the front document as STDIN (input)
unless you have made a selection, in which case it takes the
selection. « while () { ... » means, in effect, while reading the
document/selection line by line.


The other part of the answer is that you save the script with a 
memorable name in a text file and put the file in 
~/Library/Application Support/BBEdit/Scripts. It will then show 
up in BBEdit's Scripts menu (the one that looks like a scrolling 
sheet of paper).


And do feel free to fiddle with the script or ask questions to 
understand how it works or how to make variations. This list has 
John and a bunch of other smart subscribers, standing by to be helpful.


HTH


   - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit





Re: BBEdit 3.5 and Cyberduck

2012-12-23 Thread Bruce Van Allen

On Saturday, December 15, 2012 6:04:16 AM UTC+11, Dan Poynor wrote:

Since updating to 3.5 I'm no longer able to use BBEdit as my
preferred editor with Cyberduck FTP client 4.2.1...
Cyberduck will launch BBEdit but selected remote files will not open. ...


On 12/22/12 at 5:21 PM, uwallr...@tekwizard.net wrote:

I'm encountering the same problem with BBedit 10.5 and Cyberduck 4.2.1
- when trying to open files within Cyberduck it opens BBedit but then
is not responding any more. Cyberduck and BBedit is a great ...


I also use BBEdit's built-in FTP access some of the time, but  I 
agree with you that  a dedicated FTP client with Edit in 
BBEdit is a great tool. I can imagine how frustrating it must 
be to have your usual setup fail!


I assume you've contacted Barebones support and also David 
Kocher at Cyberduck about this.


Meanwhile, have you tried any other FTP clients on your machine? 
Over here I just checked and everything works fine with Fetch -- 
currently running Fetch 5.7.3  BBEdit 10.5.1 on OS X 10.8.2.


Besides Fetch, another seasoned FTP client many on this list 
swear by is InterArchy. (My only association with 
Fetch/InterArchy is that I've used them forever.)


Hope you find a solution.


Best Regards,

  - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit





Re: Missing ASCII Palette?

2013-01-14 Thread Bruce Van Allen

On 2013-01-14 at 4:35 PM, leehi...@gmail.com (Lee Hinde) wrote:

Sooo, I haven't done this in a while, but the other thing the ascii palette
let you do was highlight a character in a document and then see what it
is... Is there an equivalent of that?


Of course :-)

Select the character(s), and then choose the Character Inspector 
from the Palettes menu, and you'll see the representations of 
the selected character(s) in Hex, Decimal, Escaped, and Unicode formats.



Best Regards,

  - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.twitter.com/bbedit





Re: BBEdit Python

2013-02-11 Thread Bruce Van Allen

On 2013-02-11 at 2:31 PM, n1mie.c...@gmail.com (Chip G.) wrote:

OK, a variation on this worked. When I changed it to a 
legitimate path on my system it worked.


#!/sw/bin/python3.2

Now that's working. But since the examples I had from the 
author didn't include those, I wonder why I can't get it to 
work without.


I'm not sure what you mean by working without, but there's a 
key thing here that I hope you get.


That first line starting the #! should have a valid path to the 
interpeter you want to execute the file with. It's not the path 
of the script file itself, which I think you said in an earlier post.


If this isn't familiar, search Wikipedia or somewhere for 
shebang line.


Study what Maaerten said; and I concur with Herbert's guess 
about why your script worked with 'sw/bin/python3.2' as the 
shebang path. Lee gave you the way to find the paths to ALL of 
your Python installs.


If you wanted, by the way, to test your script in different 
versions of Python, you can stack up several shebang lines, and 
change which one is on the top line to see how the script 
performs with your different versions. You could even use 
BBEdit's Move Line Up command to quickly make the change.


HTH.




Best Regards,

  - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: executing Text Factory results in the shell

2013-02-14 Thread Bruce Van Allen

On 2013-02-14 at 3:41 PM, krem...@kreme.com (LuKreme) wrote:

Is there a way to execute the lines in the worksheet other than 
select-all, enter?


Not sure if this is quite what you mean, but in my frequent use 
of BBEdit worksheets, I've evolved this practice:


Put the call to your executable or script, with any parameters, 
and also any notes or reminders (commented out), at the top of 
the worksheet, on multiple lines if necessary, followed by a 
line with only #-#-# on it (without the quotes).


Then run an applescript (see below) that combines two steps:

- the first step selects everything from the line AFTER the line 
with #-#-#, to the end of the worksheet, and deletes the selection;


- the second step selects everything from the start of the 
worksheet up to and including the line with #-#-#.


At that point press Enter (Command-Return on some keyboards), 
and the executable runs with the provided parameters. If you 
need to tweak the executable's params before re-running, do so 
and then call the same applescript again and it will re-select 
the lines down to the #-#-#, so you may press Enter. BBEdit 
prints the executable's output starting just below the #-#-# line.


My work involves taking batches of data through a sequence of 
processing steps. I have to examine the (verbose) output of each 
step before proceeding to the next, and I have to be able to 
back up steps and replicate or modify the processing. So each 
process gets its own worksheet, and I use this applescript as I 
run the process, check the output, and then clear the sheet and 
re-run if necessary. Once I'm satisfied, I save that process's 
worksheet with the last output on it, and move to the next 
process. I found simply using Undo unworkable to get back to the 
starting position if I had been poking around in the process 
test results before deciding to re-run the script. This 
applescript to clear and re-set for execution lets me keep my 
mind on the data, rather than on the mechanics of processing the 
data. Saving the worksheet when I'm done automatically documents 
the last params and the output of their associated test results.


The applescript goes in the Application Support/BBEdit/Scripts 
folder, and I assign it a keyboard command, of course. You can 
use whatever you want for the  #-#-# token.


Here is the applescript, which I believe is up-to-date with 
BBEdit's Applescript dictionary (it definitely works for me with 
latest BBEdit on Mountain Lion):

##
tell application BBEdit
activate
set mywindow to shell window 1
set myToken to #-#-#
-- part 1: clear any previous output
set lineX to 100
set lastLine to the number of lines of text of mywindow
repeat with i from 1 to lastLine
set linetext to contents of line i of text of mywindow
if linetext contains myToken then
set lineX to i + 1
exit repeat
end if
end repeat
if lineX  lastLine then
select text from line lineX of text of mywindow to line 
lastLine of text of mywindow

set the selection to 
end if
-- part 2: select the executable lines
select text from line 1 of text of mywindow to line lineX 
of text of mywindow

end tell

Watch out for email line-wrapping, and my apologies if that was 
mangled with asterisks the way some people's scripts posted here 
have been -- someone said that's a G-groups thing??


Here's what the top lines of one of my process worksheets look 
like (using OS X's standard bash shell):


## get_locations.worksheet
Project='Nov2012'
base_dir='/Users/eagle/Documents/Data/SC_CO'
source_file='v-reg-2012-11-01.txt'
precinct_zones_file='precinct_zones.txt'
# pct_targets='smith jones sc_schools'
pct_targets='smith jones sc_schools wats_schools water_vote'
select='all'
# select='szSitusCity=Santa Cruz'
max='20'

# Assumes: precinct_districts.txt, precinct_targets.txt

perl /Users/eagle/Documents/lib/get_voter_locations $base_dir 
$source_file \

  $Project $select $pct_targets $precinct_zones_file $max

#-#-#

[Here's where output will go ...]


##  end of worksheet

Might be something useful in that for you.

HTH



Best Regards,

  - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.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+unsubscr...@googlegroups.com.
For 

Re: Regaining mindshare for BBEdit

2013-03-19 Thread Bruce Van Allen

On 2013-03-19 at 3:58 PM, t...@tobsupport.com (Ted Burger) wrote:

I am still running 9.6.3 but I simply highlight a word then hit CMD-E,
now each CMD-G finds the next occurrence of the word.


Not only that: you can assign, say, Command-H to Find Selected 
Text, which does the same as Command-E Command-G in one step, 
and after that the highlighted phrase is the search phrase.



Am I missing something???


I don't think so.

X Editor does Vaguely Described Feature(TM) better than BBEdit.

Love it.

Just in case we're really missing something, anyone care to 
define incremental find and explain how it differs from what 
BBEdit offers?




Best Regards,

  - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Regaining mindshare for BBEdit

2013-03-19 Thread Bruce Van Allen
On 2013-03-19 at 5:15 PM, he...@wideopenwest.com (Herbert 
Schulz) wrote:

An incremental search searches and finds AS YOU TYPE YOUR SEARCH
rather than waiting until you press Return after entering the full
search term.


Thanks. So this happens when you're typing your search into a 
find dialog? And then you jump back to your text to edit? When 
the incremental search searches and finds as you type, is the 
found text *selected* or just color highlighted?


Whether one might want this seems like a work-style difference 
among some of us. When I can, I disable search systems that 
start providing guesses as soon as I type, just as I don't use 
BBEdit's auto-complete (I think it was MS Word that provided my 
original pain with this misfeature.)


But I suppose plenty must like this behavior...

I do a huge amount of searching, especially find the next 
instance of the selected text without ever opening the find 
dialog -- just command keys. And Quick Find will visually 
identify all instances if I need to see them all at once. Even 
replacements can be set via the keyboard. I turn to the find 
dialog mostly when I need to compose a regular expression for a 
search, and/or specify a complicated replacement.


Barebones is very responsive to feature requests, especially if 
they understand your use case and get a clear description of 
the behavior you want. And some of us totally-mind-clamped 
BBEditors will grumpily speak up and say Sure, go ahead and 
request that (weird|crazy|discredited|younger-than-me) feature 
-- no prob as long as it can be optional.




Best Regards,

  - Bruce

_bruce__van_allen__santa_cruz_ca_

--
--
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.

To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.

Follow @bbedit on Twitter: http://www.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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




  1   2   3   >