Re: Files open in IE as the default

2009-03-03 Thread Doug McNutt
Damnable Google groups has word wrapped the text of my AppleScript. Something needs to be done about that. Save this AppleScript as a drag and drop application. You'll have to change the path to the SetFile tool. on open (argList) repeat with theAlias in argList set thePath to quoted form

Re: 2009 and eMail wordwrap, or lack thereof...

2009-02-22 Thread Doug McNutt
At 12:01 -0500 2/22/09, Morbus Iff wrote: Wordwrapping is a recommendation in the relevant RFC: http://www.faqs.org/rfcs/rfc2822.html A message consists of header fields, optionally followed by a message body. Lines in a message MUST be a maximum of 998 characters excluding the CRLF, but it

Re: Invisible characters causing trouble

2009-01-15 Thread Doug McNutt
At 16:36 -0500 1/15/09, stephen taylor wrote: Every now and then I copy some sample code (e.g. JavaScript) from a web page (not from the source) and paste it into a BBEdit document. If I copy from Safari (which I use most of the time), and the sample code contains non-breakable space (nbsp;) . .

Re: Executing Script for any File Open?

2009-01-07 Thread Doug McNutt
At 13:44 + 1/7/09, Mike Conley wrote: Is there a way to attach a script to BBEdit such that any time a file is opened, the script is executed? ftp://ftp.macnauchtan.com/Software/BBEdit/WorksheetOpen tcsh ftp://ftp.macnauchtan.com/Software/BBEdit/WorksheetShopen bash

Re: Grep Pattern

2008-12-19 Thread Doug McNutt
At 09:49 -0800 12/19/08, Chris wrote: Thanks Patrick! Seems there are many solutions with grep. Are there any good books or online tutorials for learning grep? O'Reilly Mastering Regular Expressions ISBN 1-56592-3 is the Bible Programming perl or anything about perl would also be a good place

Re: ad hoc shell filter?

2008-12-13 Thread Doug McNutt
At 21:18 + 12/13/08, johndelac...@gmail.com wrote: But if you're at a loss in AppleScript, as you say, then you're at a disadvantage. If you don't know how to write a file in AppleScript then you may be some distance from a solution. Sigh. But so true. English-like is a form of poetry much

Re: ad hoc shell filter?

2008-12-13 Thread Doug McNutt
At 23:04 +0100 12/13/08, Maarten Sneep wrote: On 13 dec 2008, at 22:56, Doug McNutt wrote: 2) It is possible to send AppleEvents to BBEdit from a running shell script. The tool is osascript along with its cousin osacompile. Using osascript with a here document ( redirection) you can ask

Re: Shell worksheet

2008-11-27 Thread Doug McNutt
At 11:20 -0800 11/27/08, Dennis wrote: On Nov 27, 2008, at 7:26 AM, mkowsl wrote: When opening a shell worksheet in BBEdit 9.0.2 , I get the first two lines saying: Unknown option: `-l' Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ]. before the template, and the worksheet

Re: A few feature requests

2008-11-26 Thread Doug McNutt
At 07:45 -0800 11/26/08, Tim Gray wrote: $text ~= s/\s+$\\ OR$text =~ s{\s+$}{}gmx; How about a BBEdit find and replace, with use grep, of \s+\rwith\r -- -- A fair tax is one that you pay but I don't -- --~--~-~--~~~---~--~~ You received this

Re: Trim trailing whitespaces

2008-11-18 Thread Doug McNutt
At 09:17 -0800 11/18/08, RWCarr wrote: I see there is a Pref for When auto-indenting, remove leading white space from indented line What does this do? I have it checked, but when I type: if whatever then something something something something I get auto-indenting to keep

Re: Huge Files

2008-11-13 Thread Doug McNutt
At 06:32 -0800 11/13/08, Dennis Whiteman wrote, and I snipped a bit: It was not uncommon for me to open files 1-gig or larger, so long as I had more RAM on the Mac than the size of the file. When you opened such large files, you might get the spinning donut of death for five minutes or more,

Re: Perl is a post-modern language [Was: Is it me or is this a GREP bug?]

2008-10-09 Thread Doug McNutt
At 11:09 +1100 10/10/08, Charlie Garrison wrote: So, if anyone has any actual points (pros/cons) of a given language, then please share. We may have some budding programmers on the list who could benefit from the comparison. But we're probably already veering too far off-topic. This should

<    1   2