Re: Searching for files of a particular line break type

2013-07-29 Thread Doug McNutt
ftp://macnauchtan.com/Software/LineEnds Is a link to an older Applescript scheme, with a bit of C code, that allows for a quick study of existing files by dropping their icons onto a folder. It's a bit old (2006) and I can't test with anything newer than OS 10.4. It is not intended to handle

Re: Strip away all HTML, leaving just the URLs

2013-03-07 Thread Doug McNutt
At 10:14 + 3/7/13, John Delacour wrote: On 06/03/2013 15:58, Nick wrote: Thanks, that did exactly what I was looking for. But, I realized I also need to do this for anchor tags with relative links, such as: a href=/xxx//zzz.shtmlordinateur de bureau/a A text filter something

Re: UI feature request: Tabs

2012-12-31 Thread Doug McNutt
Why don't you folks who want tabs just use a bbedit worksheet? I rarely use Finder these days and I never open a bbedit slide drawer. What I do is to always have a bbedit worksheet open on my leftmost monitor. In it are shell scripts that I can select and click any time I want. They are

Re: Overtype is there such a thing?

2012-12-20 Thread Doug McNutt
At 16:17 -0600 12/20/12, Fritz Anderson wrote: On 20 Dec 2012, at 3:36 PM, LuKreme krem...@kreme.com wrote: Wouho Otus spake on Thursday 20-Dec-2012@03:02:09 Is there an overtype option for BBEdit? Select the text you want to overtype and type the new text. ? The OP is thinking of the

Re: Mixed line endings problem

2012-12-11 Thread Doug McNutt
At 21:00 -0800 12/10/12, Gregory Shenaut wrote: It seems to me that a file with mixed line endings should be interpreted such that \r sends the carriage back to first column but doesn't advance to the next line, with \n serving to move down one in the same column: in other words, a file

Re: Mixed line endings problem

2012-12-11 Thread Doug McNutt
At 09:40 -0500 12/11/12, François Schiettecatte wrote: Ok, obviously an issue for you, have you filed a report with Bare Bones Software Technical Support @ supp...@barebones.com ? Perhaps not, but I sure have. It started pretty much with the introduction of worksheets which I really hoped

Re: Mixed line endings problem

2012-12-10 Thread Doug McNutt
At 17:51 -0800 12/10/12, Troy Gillette wrote: I work on a large cross-platform project for Mac and Windows. Every editor used on the Windows team treats UNIX and Windows style line endings as if it is simply a native carriage return. So if any mixed line endings end up in a file, it is

Re: Web hosting recommendations

2012-12-06 Thread Doug McNutt
At 20:57 -0800 12/5/12, Govinda wrote: +1 Pair gives you SSH and also use git... in even the basic plan. I totally agree. pair gives you a bonafide UNIX login which works nicely with a BBEdit worksheet. It's easy to set up reusable bash or tcsh command lines that use SCP to allow local

Re: Using Applescript to run GNU Make

2012-11-29 Thread Doug McNutt
At 20:19 -0800 11/28/12, Randall Venhola wrote: I have been reading the BBEdit User Manual and I am stuck.My goal is to have the output of my GNU Makefile to become a clickable results browser. I have tested the Makefile and it works fine. I open the Applescript editor and then open the BBEdit

Re: Unix scripts not working in 10.8.2

2012-10-06 Thread Doug McNutt
At 21:53 +0100 10/6/12, John Delacour wrote: On 05/10/2012 20:52, François Schiettecatte wrote: Dumb question, have you checked that the script has execute permissions? chmod 755 myScript.pl I've explained why the scripts weren't working, and it has nothing to do with permissions. A script

Re: Unix scripts not working in 10.8.2

2012-10-05 Thread Doug McNutt
At 20:43 +0100 10/5/12, John Delacour wrote: I installed Mountain Lion yesterday, probably the worst decision I ever made! Some of Apple's own main apps now seem to be buggier than they were 5 years ago with no useful new features. None of my UNIX filters in BBEdit are now working. For example

Re: Reading Data from Text Window into a Shell Worksheet

2012-09-22 Thread Doug McNutt
At 04:54 -0500 9/22/12, Christopher Stone wrote: Today I was prototyping some shell stuff for an Applescript, which I sometimes do in a BBEdit worksheet due to the extra quoting necessary in Applescript. I like to get it working before I have to futz with the quoting. Anyway. Today I didn't

Re: Grep and Line Endings

2012-08-22 Thread Doug McNutt
At 13:50 -0600 8/21/12, Clark Goble wrote: About the use of 0x0D while editing ALL fioes. It would seem if you do want to make this a feature in the future simply have a filter function you run the grep text through before passing it to your grep functions. In that filter function simply

Re: Large copy-paste from Excel

2012-08-03 Thread Doug McNutt
At 04:31 -0700 8/3/12, mkowsl wrote: Copy-paste of large (1 cases) columns from Excel to BBEdit (10.1.2) fails, but works to e.g. Textedit...any other observations in that respect? Watch the line ends. They're likely to be 0D from Excel and BBEdit might get upset if the destination file is

Re: Troubleshooting bbedit/p4 integration

2012-06-21 Thread Doug McNutt
At 17:19 -0700 6/20/12, mason k wrote: Thanks. I went and refreshed my memory on how Mac handles environment, and ended up at this http://stackoverflow.com/a/4567308/86432stackoverflow answer answer, and went with ~/.launchd.conf On Tuesday, June 19, 2012 12:32:35 PM UTC-4, Rich Siegel wrote:

Re: Text Factory for Delete Characters until X

2012-03-30 Thread Doug McNutt
At 13:00 -0700 3/29/12, Todd wrote: Long story short: I'm needing to open some word processing files that can't be opened in Mac OSX Lion (Lion vs. Rosetta thing...) and need a bit of helping creating a Text Factory. When I open the files in BBEdit, I get a string of characters, anywhere from

Re: \1 in AppleScript

2012-02-10 Thread Doug McNutt
At 10:35 -0800 2/10/12, James wrote, and I snipped: The BBEdit manual calls attention to the fact that AppleScript compiler and BBEdit both use a backslash to escape and read the immediate glyph as a literal. Thus, to automate a grep search the BBEdit manual recommends the following piece of code:

Re: Find-Replace using LaTeX commands

2012-01-17 Thread Doug McNutt
At 12:07 -0800 1/17/12, Govinda wrote: If I understand what you are asking correctly, then yes: \r = the line ending character \t = the tab character if you want to find the *literal* string \r, then you would search for it this way: \\r The \ char escapes whatever comes next. It helps to

Re: Files won't open

2011-10-23 Thread Doug McNutt
At 19:02 -0700 10/22/11, Watts Martin wrote: On Oct 21, 2011, at 16:43 , Doug McNutt wrote: bbedit will not process files that have mixed line ends. It won't even allow you to repair such files. As an example try opening a bbedit worksheet as a plain text file. I put a few commands in a new

Re: Invisible Character Mystery

2011-10-21 Thread Doug McNutt
At 07:22 -0400 10/21/11, François Schiettecatte wrote: Maybe it got copy-pasted in, or you duplicated the file from another one, at this point this is speculation. It's possible that the behavior depends on the format in which the file is actually saved on disk. Most of use UTf-8 which would

Re: Use worksheet with LaTeX

2011-10-07 Thread Doug McNutt
At 21:52 +0200 10/7/11, Marek Stepanek wrote: Thank you for the quick answers. Herbert, Maarten you where right. It was pretty clear, that my worksheet was starting in my ~/ home folder. I changed the directory with cd to the folder, where my file.tex and file.worksheet are saved. And now it is

Re: sh script

2011-10-02 Thread Doug McNutt
At 15:13 +0100 10/2/11, Phil Dobbin wrote: I got it working on the command line by cd'ing to the directory it was located in giving it an absolute path using ~/ AppleScript is well known for not running startup scripts for shells. Your $PATH variable may not be what you think.. That tilde I

Re: sh script

2011-10-01 Thread Doug McNutt
At 23:18 +0100 10/1/11, Phil Dobbin wrote: On 1/10/11 at 21:30, chip.war...@gmail.com (Chip Warden) wrote: It looks like you have a space in your shebang line where it shouldn't be. The line should look like: #!/bin/bash not: #! /bin/bash Hi, Chip. I did notice the erroneous space deleted

Re: possible to set upper case tags as the default?

2011-09-30 Thread Doug McNutt
At 06:46 -0700 9/30/11, blinde wrote: brian thank you. as usual, I am late to the game and dragged kicking and screaming. 8-) although I find uppercase tags easier to parse in long docs I have heard and will obey And those of us who grew up with all capitals using six bit bytes and Hollerith

Re: Replace with newline character

2011-09-30 Thread Doug McNutt
At 09:49 -0700 9/30/11, Fletcher Sandbeck wrote: Remember that bbedit works with everything as 16 bit unicode. There, all line ends are Apple style 000D entries. Regardless of what will come out on a save you have to check for 0D while it's in memory. It was once true that, for Apple

Re: How to make a feature request for moveable (variable) tab stops?

2011-09-19 Thread Doug McNutt
At 12:14 -0700 9/19/11, Watts Martin wrote, and I snipped: People who want variable tab stops don't want to have a filter applied after the fact to line up text in columns using spaces or a mix of fixed-width spaces and tabs; they want tab stops, like a word processor. That is, you can set a

Re: GREP/Regex for dummies?

2011-09-06 Thread Doug McNutt
At 14:58 -0400 9/6/11, Jefferis Peterson wrote: ^([A-Z0-9]+) (.*) [0-9]+ $ Just curious... A space in the Find field using Grep... Isn't seen is it? Like the space before the $ ? If no spaces are found before or after in your original Find above, does that stop the search? IOW, what is the

Re: C++

2011-08-19 Thread Doug McNutt
At 08:35 -0500 8/19/11, David Kelly wrote: Create a wrapper script around the tool, and run it from there, just like any other tool. That assumes the second use case. In the days of MPW and later in the very early days of BBEdit worksheets it was possible to include compile, link, and execute

Re: How to make a feature request for moveable (variable) tab stops?

2011-08-19 Thread Doug McNutt
At 09:05 -0700 8/19/11, hermione_havanese wrote: How to make a feature request for moveable (variable) tab stops? I realize BBEdit is not a spreadsheet or word processor, but I find that wider tab stops can sometimes help with reading complicated (to me) code. Is there any reason not to allow

Re: How to make a feature request for moveable (variable) tab stops?

2011-08-19 Thread Doug McNutt
At 14:04 -0700 8/19/11, Watts Martin wrote: I'm not clear from Doug McNutt's earlier message whether what BBEdit was useless for was the insert a single hard tab between columns described above, which indeed most text editors would be lousy at but most word processors would not, or what he

Re: Insert date with GREP

2011-08-18 Thread Doug McNutt
At 07:08 -0500 8/18/11, Christopher Stone wrote: On Aug 18, 2011, at 03:23, Mark wrote: Does anybody know if there's a way to enter today's date via search and replace? I have files with strings like this imported2009-02-12/imported and I'm processing them with a text factory Personally, I

Re: FTP/SFTP Browser shows two folders in every directory

2011-08-14 Thread Doug McNutt
At 13:52 -0700 8/14/11, Govinda wrote: I really want to ask more questions here .. but perhaps BBedit users will (rightly) feel I am going too OT. (Like WHY does it not work to just be in the right directory and type the name of a command?; why does the command have to have the './' first? I

Re: What's the BBEdit Sales Pitch?

2011-07-28 Thread Doug McNutt
At 20:49 -0700 7/27/11, Brett Kelly wrote, and I snipped: If somebody asked you, my new friend, why you use BBEdit, what would you tell them? BBedit worksheets are the only reason I switched. Apple's MPW, Macintosh Programmer's Workshop, was never ported to OS 10 and BBedit was the only option

Re: Per document tab widths

2011-07-27 Thread Doug McNutt
At 10:40 -0700 7/27/11, Watts Martin wrote: Bruce Van Allen wrote, and I snipped: I suppose to be precise I should have said there appeared to be no UI control to adjust the tab width on a document-level basis. Just in case anyone at Bare Bones cares: While you're making tab width adjustable

Re: Per document tab widths

2011-07-27 Thread Doug McNutt
At 13:13 -0500 7/27/11, David Kelly wrote: On Wed, Jul 27, 2011 at 12:04:32PM -0600, Doug McNutt wrote: Just in case anyone at Bare Bones cares: While you're making tab width adjustable on a per file basis it would really be great if you could arrange for tab stops as in a real typewriter

Re: BBEdit not setting execute bit

2011-07-21 Thread Doug McNutt
At 23:26 -0700 7/20/11, TJ Luoma wrote: The manual (pdf page 304) says Additionally, to execute scripts anywhere outside of BBEdit (e.g. in the Terminal), the system requires that the script file have 'execute' permissions set. Thus, when you first save any script file which contains a

Re: BBEdit not setting execute bit

2011-07-21 Thread Doug McNutt
At 08:44 -0500 7/21/11, Fritz Anderson wrote: On 21 Jul 2011, at 7:10 AM, Doug McNutt wrote: But what's worse: Try making a BBEdit worksheet executable the way I do it with MPW. Eh? Worksheet documents are XML, and must be expected to interleave commands with their results. Why would you

Re: BBEdit 10 cost

2011-07-19 Thread Doug McNutt
At 17:02 -0700 7/19/11, Warren Michelsen wrote: One day, when I abandon Eudora and upgrade to 10.6+, I'll upgrade BBEdit too. I love it! This machine, an 8500, runs Eudora 5.1 and BBedit 6.5. A big advantage is that it doesn't keep changing on me. I'm also limited to another old version of

Re: Why does this group expose our private email addresses?

2011-06-26 Thread Doug McNutt
In days of old, before high speed internet, the approved procedure for replying to a posted bessage was to address the reply to the sender with a copy to the list. The reason was that you could get the question answered right away without a long wait while an answer found its way through a

Re: AppleScript Open File in BBEdit 9.6

2011-06-22 Thread Doug McNutt
At 12:04 -0700 6/22/11, Rich F wrote: For the life of me I can't find a way of opening a file in a subdirectory in my webserver directory. set myF to file /Library/WebServer/Documents/alpha/bravo/items.lasso tell application BBEdit 9.6 open myF as alias end tell I'm biased but the

Re: How to open in Browser window?

2011-06-14 Thread Doug McNutt
At 15:37 -0700 6/14/11, Lorel wrote: I would like to know if it's possible to open an html document in a browser window from inside BBedit Isn't that what preview is all about? But I always have a bbedit worksheet open and there it's trivial: open -a Safari path_to_file And it's OK to have

Re: Search Replace

2011-05-29 Thread Doug McNutt
At 07:23 -0700 5/29/11, jj200...@gmail.com wrote: Hi all I would like to find lines like below and replace them with blank lines, I have read the GREP tutorial but had no succes PLEASE help p class=text08-06-2011 15:49:25/p p class=text08-06-2011 15:54:45/p p class=text08-06-2011 15:56:13/p Also

Re: Saving 2 copies, one with a tilde after the title

2011-05-03 Thread Doug McNutt
At 13:11 -0700 5/3/11, Bo wrote: It doesnt always happen, but for a while now, when I save a file, it creates another copy, with a tilde after the name. Is there some setting that will alter this behavior? Is this a bug? Hmmm.. My Linux editor of choice is gedit and it does that too. It's a

Re: Change file permissions and ownership.

2011-04-16 Thread Doug McNutt
At 10:15 -0700 4/16/11, JRC wrote: Can I use BBEdit to a file's permission and/or ownership after I am done editing it ? I have used BBEdit to make a small revision to a file and then saved it. Now I am trying to change its permissions and ownership. I am curious to learn if I can use BBEdit for

Re: GREP to clipboard?

2011-03-23 Thread Doug McNutt
At 12:55 -0700 3/23/11, Bo wrote: Is there a way to do a grep search and replace all then copy to clipboard so I can paste elsewhere? try piping the output from grep to pbcopy grep lookfor fileglob | pbcopy man pbcopy man pbpaste -- -- In Christianity, man can have only one wife. This is

Deliberately hijacked thread, Webmaster

2011-03-17 Thread Doug McNutt
At 07:46 -0500 3/17/11, Fritz Anderson wrote: I wish you would not start a new thread by replying to another. Other peoples' mail clients display your message as part of the other thread. The offending posting came from Webmaster webmas...@endtimeprophecy.net and contained these headers:

Re: Command line make results

2011-03-16 Thread Doug McNutt
Has anyone offered a script or setting that will open a perl script and go to the line specified in an error message when the script is executed from within a worksheet? -- -- The best programming tool is a soldering iron -- -- You received this message because you are subscribed to the

Re: Problem with unicode and Tidy

2011-03-07 Thread Doug McNutt
At 11:18 +1100 3/8/11, Alex Satrapa wrote: If someone can give me an example of where curly quotes are bad I'll stop using them - perhaps there is a popular screen reader used by blind people that chokes on Unicode punctuation. There is nothing like an overzealous email client that defaults to

Re: Mac OS X Command-Line List? What about Perl?

2011-02-08 Thread Doug McNutt
At 23:49 -0700 2/7/11, LuKreme wrote: I think bash is the most commonly used shell. I used zsh one upon a time, but then encountered a server cluster that didn't have zsh and had to unlearn some stuff, so I've stuck with csh (90s to early 2000s) or bash ever since, and mostly bash. BBEdit

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Doug McNutt
At 12:18 -0600 2/8/11, Christopher Stone wrote: 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. There certainly is a way to

Re: Applescript: Execute a line in a worksheet

2011-02-08 Thread Doug McNutt
At 19:03 -0600 2/8/11, Fritz Anderson wrote: On 8 Feb 2011, at 6:58 PM, Steve Piercy wrote: On Feb 8, 4:35 pm, Fritz Anderson fri...@manoverboard.org wrote: You're in for a treat. Select File New Shell Worksheet, and read what's in the window that appears. (MacOS Error code: -4960)

Re: AppleScript: Open Hidden Files like httpd.conf

2011-01-27 Thread Doug McNutt
At 12:16 -0500 1/27/11, Steve Kalkwarf wrote: On Jan 27, 2011, at 11:45 AM, Herbert Schulz wrote: You can also use a feature that is part of any standard Open... and Save... dialog: type Cmd-O to get the dialog. Then type shift-Cmd-G and a sheet will slide down for you to put in the path to

Re: Column size in tables

2011-01-23 Thread Doug McNutt
At 22:53 -0800 1/22/11, Ken Lanxner wrote: Now that you have your answer, next time you might find such a question more appropriate on Bare Bones' Web Authoring List which is just the place to ask about HTML coding. A low traffic list but some very generous help there. As a matter of interest I

Re: Two BBEdit versions (8.7.2 and 9.6.2) how to separate prefs ?

2011-01-19 Thread Doug McNutt
At 14:15 -0600 1/19/11, Christopher Stone wrote: On Jan 19, 2011, at 08:26, Gabriel Roth wrote: The application rooSwitch (http://rooswitch.com/) may help with this. __ That's pretty spiffy. Eudora used to allow multiple

Re: Regex Find

2011-01-19 Thread Doug McNutt
At 14:26 -0600 1/19/11, Christopher Stone wrote: (Eventually I'll know enough Perl to be able avoid using multiple tools.) Have a look at the * construct in perl which returns a list of all files in the current directory. The * is really a perl glob and you can put a regular expression there.

Re: Help to set up a filter!

2011-01-13 Thread Doug McNutt
At 17:07 +0100 1/13/11, Marek Stepanek wrote: Thank you for your reply. Whether I did not understand your suggestion, or you did not understand my problem :-) The problem was iterating over many naked (with out any html-tags) text in a large text file and tag these found occurrences, and replace

Re: Scheme for shortcuts

2011-01-13 Thread Doug McNutt
At 20:43 + 1/13/11, Roddie Grant wrote: Over time I've set up a lot of keyboard shortcuts, but they've been fairly random, particularly with the modifiers used. I'd like to be more organised so that, for example, Control+key does something to the environment (toggle invisibles, softwrap etc)

Re: Scheme for shortcuts

2011-01-13 Thread Doug McNutt
Belay that. I thought I was talking to the gedit list. My only complaint with BBEdit worksheets is that I have to copy and paste their contents into a text file before I can use them on Linux.. That crazy scheme with an XML file that has mixed line ends that even BBEdit can't read is a

Re: Help to set up a filter!

2011-01-12 Thread Doug McNutt
At 19:12 +0100 1/12/11, Marek Stepanek wrote, and I snipped a bunch: Hello all! #!/usr/bin/perl use strict; use warnings; $/ = undef; $_ = ; foreach ($_ =~ m,(/p\s+[^]+?p),g) { my $paragraf = $1; $paragraf =~ s,/p,$p class=links_normal,; $paragraf =~ s,\n\np$,/pp,g;

Re: How to force open files IN BBEdit?

2010-12-11 Thread Doug McNutt
At 19:08 + 12/11/10, John Delacour wrote: On 11 December 2010 05:36, ricolich richard.ronnb...@publishingkonsult.se wrote: I was probably not very clear in my question:... ... I just want to be able to open the file and view it's content in BBEdit, just as I can with any other type of text

Re: bbedit tool crontab

2010-11-09 Thread Doug McNutt
At 03:35 -0800 11/9/10, cp21yos wrote: Following the instructions I was at one time able to use 'crontab -e' to edit my cron file. try crontab -l | bbedit -- -- A fair tax is one that you pay but I don't -- -- You received this message because you are subscribed to the BBEdit Talk

Re: Replace on Different Line Than Find?

2010-11-01 Thread Doug McNutt
!/usr/bin/perl undef $/; # Tell perl to ignore line ends in the input. $thetext = STDIN; # read the whole document from standard input. $e = \n; # Make it clear which line ends your document has in it. You might want \r or \r\n. # Do the substitutions (s///) using the s flag to include line

Re: Replace on Different Line Than Find?

2010-11-01 Thread Doug McNutt
At 14:27 -0700 11/1/10, Warren Michelsen wrote: At 1:05 PM -0600 11/1/10, Doug McNutt sent email regarding Re: Replace on Different Line Than Find?: !/usr/bin/perl undef $/; # Tell perl to ignore line ends in the input. $thetext = STDIN; # read the whole document from standard input. $e = \n

Re: how to paste in a specific column

2010-10-14 Thread Doug McNutt
At 18:32 +0100 10/14/10, John Delacour wrote: At 08:33 -0700 14/10/2010, jtk wrote: Has anyone figured out how to automatically place a character (e.g., ) in the same column of selected lines? This would be really useful for Fortran continuation lines. So far I can't see how to do it other than

Re: how to paste in a specific column

2010-10-14 Thread Doug McNutt
At 17:09 -0700 10/14/10, jtk wrote: Thanks for all the replies, and for reminding me that I'm a complete dinosaur for still programming in Fortran ;^. Obviously Doug you haven't had to program in Fortran 90/95. Official form for continuations is to put an ampersand in col. 73 of the first line and

Re: Grep Help.

2010-09-09 Thread Doug McNutt
At 11:09 -0700 9/9/10, Bruce Van Allen wrote: On 2010-09-09, m i l e s wrote: 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

Re: Sorting a .plist

2010-08-18 Thread Doug McNutt
At 00:39 -0600 8/17/10, LuKreme wrote: dict keyArchive File Name/key stringFaceBlock-1.safariextz/string keyBundle Directory Name/key stringFaceBlock-1.safariextension/string

Re: Flip a Table

2010-07-05 Thread Doug McNutt
At 10:37 -0700 7/5/10, Warren Michelsen wrote: I have tables containing data in reverse chronological order. I'd like it to be chronological so I'm thinking I can just move the table rows around. Seems like it would require a separate scratch file to hold the re-ordered rows until all rows have

Re: Column insert on uneven lines

2010-06-06 Thread Doug McNutt
At 13:31 -0600 6/6/10, LuKreme wrote, and I snipped a bit: Something I do quite a bit is take a file like this: file1.txt file2.txt file3.txt and a file likes this: Fred George Alex and convert it to mv file1.txt a long filename - 1 - Fred.txt mv file3.txt a long filename - 2 - George.txt mv

Re: [ANN] BBEdit 9.5

2010-04-27 Thread Doug McNutt
On Apr 27, 2010, at 9:24 AM, Rich Siegel wrote: A complete digest of the changes is available here: http://www.barebones.com/support/bbedit/arch_bbedit95.html That link shows: If you are using the expert preference to save state in the document's resource fork (rather than in a central

Re: Controlling BBEdit via script other than AppleScript

2010-03-09 Thread Doug McNutt
At 16:05 -0800 3/9/10, Kendall Conrad wrote: I know how to use AppleScript with BBEdit to move the cursor, replace content, etc., but can other scripting languages do this as well, such as Python? I've looked around some, but haven't found anything. I know about the Run menu and being able to run

Re: File modified on disk warnings - seemingly random

2010-01-29 Thread Doug McNutt
Is it possible that some content-indexing package is hitting the files in background? Or perhaps some disk optimizing cron job? -- -- A fair tax is one that you pay but I don't -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups.

Re: iPad

2010-01-28 Thread Doug McNutt
At 12:46 +1100 1/29/10, Alex Satrapa wrote: BBEdit and a decent SSH shell are my perfect iPad applications to add to what we saw at the demo. http://www.zinger-soft.com/iSSH_features.html The X11 feature is labelled coming soon. I wonder. There is some new Apple-proprietary chip in the thing.

Re: BBEdit doesn't find text in Word headers and footers

2010-01-22 Thread Doug McNutt
At 07:34 -0800 1/22/10, Karen B wrote, and I snipped: The problem with these programs is that they find file contents that have been deleted. I guess the deleted text is still present somehow, but not visible. WORD is famous for that. There is a special way to save a final version that removes

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

2010-01-09 Thread Doug McNutt
At 15:46 -0700 1/8/10, I wrote: Quoting: ShellService is a service component - it provides functionality that other applications use.In the Services menu (under the application menu), ShellService adds an item called Execute Text. This item will be enabled whenever you have text selected in

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

2010-01-08 Thread Doug McNutt
At 12:58 -0800 1/8/10, Dennis wrote: You can download the script here: http://www.dennisrande.com/downloads/Run%20Shell%20Command.zip The Execute Text service I spoke about earlier came from: http://www.apple.com/downloads/macosx/unix_open_source/shellservice.html But that link is broken. The

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

2010-01-08 Thread Doug McNutt
The lady of the house found this: http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=01326platform=osxmethod=sa/ShellService.tar.gz by looking at some wayback pages. http://web.archive.org/web/20050302141626/http://www.apple.com/downloads/macosx/unix_open_source/shellservice.html

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

2010-01-07 Thread Doug McNutt
At 18:47 -0800 1/6/10, Ben wrote: G'day all, I routinely use BBEdit for coding SQL etc, and then have to select, copy, switch to the terminal window and paste to execute the line. Is there a way to create a key-stroke that will take the current line (or selection) and dump it into a nominated

Re: Shell for worksheet V 8.5

2009-12-18 Thread Doug McNutt
At 09:54 -0500 12/18/09, Patrick Woolsey wrote: Doug McNutt dougl...@macnauchtan.com sez: System 10.3.9 with BBEdit 8.5. Can't go higher without new hardware. I had a disk failure and had to restart a bunch of stuff and now my worksheets have all been converted from tcsh to bash. How can I get

Re: Shell for worksheet V 8.5

2009-12-18 Thread Doug McNutt
At 09:34 -0700 12/18/09, Doug McNutt wrote: At 09:54 -0500 12/18/09, Patrick Woolsey wrote: Doug McNutt dougl...@macnauchtan.com sez: System 10.3.9 with BBEdit 8.5. Can't go higher without new hardware. I had a disk failure and had to restart a bunch of stuff and now my worksheets have all been

Shell for worksheet V 8.5

2009-12-17 Thread Doug McNutt
System 10.3.9 with BBEdit 8.5. Can't go higher without new hardware. I had a disk failure and had to restart a bunch of stuff and now my worksheets have all been converted from tcsh to bash. How can I get back? My .tcshrc file is getting executed when Terminal.app comes up in tcsh at login

Re: FTP File Mappings?

2009-11-09 Thread Doug McNutt
At 08:19 -0800 11/9/09, Bee wrote: Since ascii transfers convert line endings and line endings are not important to html and most modern text editors and word processors do not care... I transfer everything binary because I do not want ftp or anything else messing with my files. AMEN. ftp in

Re: alternative to /r for linebreaks?

2009-11-08 Thread Doug McNutt
At 13:10 -0800 11/8/09, Michael Heth wrote: This is probably rudimentary but I can't find what I need so I thought I would ask. I am massaging 11K emails that were in a proprietary archive database. They were exported as a large text file. The field delimiters were high ASCII characters as

Re: Scripting Line Prefix

2009-10-30 Thread Doug McNutt
At 17:41 -0400 10/30/09, Ronald J Kimball wrote: The actual title of the Camel Book is Programming Perl. At 15:42 -0500 10/30/09, Christopher Stone wrote: On the Perl topic does anyone have recommendations for online resources and books for a rank beginner? There is also a smaller O'Reilly

Re: grep help, delete everything other than what I'm matching

2009-10-28 Thread Doug McNutt
At 09:30 -0700 10/28/09, BB Design wrote: I'm using BB Edit grep to select a/a links like this: (\a.*\\/a) So I can paste the match using: \1 However, I basically want to delete everything else in the document except these links, so that all I am left with is the links. Possible to modify my

Re: Is there a way to duplicate a line?

2009-10-22 Thread Doug McNutt
At 14:52 -0700 10/22/09, Dennis wrote: On Oct 22, 2009, at 2:35 PM, daedalus wrote: Is there a built-in way I'm just overlooking or a macro or something I can do that would allow me to accomplish this? Easily done with a script: If you turn it on BBEdit will select a whole line with a single

Re: Line endings with Unix servers

2009-10-01 Thread Doug McNutt
At 08:54 -0500 10/1/09, Rod Buchanan wrote: And I snipped it all The problem I have with BBEdit, and I'm limited to OS 10.3.9 for other reasons, is that there is absolutely no way that BBEdit will allow me to work with files that have mixed line ends for perfectly good reasons. It is most

Re: Fixing bad Camel-Case URLS

2009-08-24 Thread Doug McNutt
I'm not so sure it's a complete solution but you should remember that you can make links, hard variety to files and symbolic variety for directories. man ln# for more on a Linux box. -- -- From the U S of A, the only socialist country that refuses to admit it. --

Re: size limit for text files ?

2009-08-07 Thread Doug McNutt
At 10:14 -0400 8/7/09, Patrick Woolsey wrote: http://faq.barebones.com/do_getanswer.php?record_id=36 BBEdit and TextWrangler represent open documents as Unicode, which uses two bytes for each character. Combined with an internal Mac OS X limitation, this means that you can open files up to 384

Re: Script to convert CSV to formatted plain text table

2009-06-16 Thread Doug McNutt
Assuming the OP meant, by ASCII table, a flow of text that will appear in a BBEedit window as a table the real answer is no way. It might be possible to demand a constant width font and add space characters to make such a file appear as a table of sorts but editing the contents would be

Re: Script to convert CSV to formatted plain text table

2009-06-16 Thread Doug McNutt
At 16:18 +0100 6/16/09, Carlton Gibson wrote: I meant to take something like this: col1,col2,col3 xx,xxx,x and turn it into something like: *** * col1 * col2 * col3 * *** * xx * xxx * x * *** Readers: Switch to a

Re: BBEdit capabilities and scripting

2009-06-16 Thread Doug McNutt
At 17:40 -0700 6/16/09, Tim Gray wrote: A whole lot of good stuff Amen! Let's have a real UNIX connectivity. Have a look at Linux' gedit tools. They are anything but perfect but a wise software supplier could easily increase the capabilities of the linkage. And there are those who accept only

Re: Where Can I Find the HTML Language Module

2009-06-11 Thread Doug McNutt
At 06:52 -0700 6/11/09, Jonathan Pool wrote: We've found that hiring someone who's willing to study the ins and outs of the language in question and implement an expert solution has worked very well Except when it hasn't. BBEdit mistreats Perl regular expressions. I'm stuck on OS 10.3.9 for

Re: Using SSH with BBEdit

2009-05-05 Thread Doug McNutt
At 14:10 -0700 5/5/09, Bruce Van Allen wrote: 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.) BBEdit worksheets work well with the scp flavor of ssh but they're not so good

Re: Find / Replace or insert text

2009-05-04 Thread Doug McNutt
At 10:57 -0700 5/3/09, RichF wrote: Not sure how to do this. I want to insert text after position 72 in selected lines even if the line is shorter than 72 characters. Any help always appreciated. I can't resist it: You need to set 7/9 punches in column 72 of the wrap around control card that

Re: Find word delete line

2009-05-02 Thread Doug McNutt
At 19:14 +0100 5/2/09, John Delacour wrote: #!/usr/bin/perl my $word = something; while () { /$word/ or print } Noting is ever simple. That would need modification to handle the case there the letters constituting $word appear within another word that has more characters than $word. while ()

Re: Jack Stewart's word wrap works...

2009-04-01 Thread Doug McNutt
At 18:50 -0500 4/1/09, Bill Hernandez wrote: Well that didn't work... The only other thing I noticed was that he is using gMail, and may be bypassing some wrapping filter I hope somebody figures this out. It would be nice to have mail that didn't hardwrap... Jack, if you're reading this, how

Mixed unicode and ASCII

2009-03-21 Thread Doug McNutt
I have long been frustrated by BBEdit's refusal to edit files that, for good reason, have different line end characters throughout - like BBEdit Worksheet files for instance. Now I have another similar problem. Adobe has changed the format of its .fdf, form data, files. For almost a decade I

Re: Batch change of line feeds

2009-03-19 Thread Doug McNutt
At 17:40 -0500 3/19/09, Doug Pinkerton wrote: I routinely receive clusters of files with Unix or Windows returns, and need to change them all to Mac. Is there a way to do this on all of them at once? You might like this piece of doggerel. Drag and drop AppleScript.

Re: Files open in IE as the default

2009-03-03 Thread Doug McNutt
At 21:13 -0600 3/2/09, Jim Chaffin wrote: Just do a Get Info on a 'BBEdit file' and select BBEdit as the preferred app to open them. Then click the Change All... button. You can still use type and creator. The SetFile developer tool still works. You can just put the SetFile tool in $HOME/bin/

  1   2   >