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

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

2010-01-12 Thread Paul Burney
Hi Dennis, Your Run Shell Command script has been very, very helpful to me. Thank you so much for posting it! -Paul Burney -- 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

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

2010-01-12 Thread Lorin Rivers
I use one (it's a template I made) in particular that's a big part of my workflow. It has the following in it: # Leopard ps change update 2008.01.31 # Don't forget to unlock apachectl configtest # die, die, die apachectl stop # start apachectl start # let stuff finish, die, start apachectl

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

2010-01-12 Thread Ron Fleckner
On 12/01/2010, at 9:13 PM, Chris wrote: Lewis emailed me about this thread - I hadn't maintained or kept track of the ShellService 1.0 build (or source) for some time, but as it's fairly simple I went ahead and put together a 2.0 version with builds for Leopard and Snow Leopard. This is

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 peter boardman
On 7 Jan 2010, at 02:47, Ben wrote: Is there a way to create a key-stroke that will take the current line (or selection) and dump it into a nominated window. I have Command-Enter bound to a Unix filter that evaluates STDIN and prints both STDIN and the result to STDOUT. You select some text,

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

2010-01-08 Thread Dennis
On Jan 6, 6:47 pm, Ben ben.aus...@gmail.com wrote: Is there a way to create a key-stroke that will take the current line (or selection) and dump it into a nominated window. Here's a quick AppleScript I threw together a couple years ago that runs the current selection (or the current line if

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: How to Run a line of code in external program

2010-01-07 Thread Ben
G'day Doug, On Jan 8, 1:04 am, Doug McNutt dougl...@macnauchtan.com wrote: At 18:47 -0800 1/6/10, Ben wrote: Is there a way to create a key-stroke that will take the current line (or selection) and dump it into a nominated window. Execute Text is a service I found somewhere long ago.  Have