At 14:56 -0800 1/11/08, Dennis wrote:
>On Jan 11, 2008, at 1:29 PM, Doug McNutt wrote:
>
>>You can select and ENTER to execute commands in the shell of your  choice. 
>>Output from the command is placed right after the command  line(s) you 
>>executed. With a text file you're reduced to copy and  paste into 
>>Terminal.app.
>
>Unless you write a simple AppleScript to execute a selection in a  BBEdit text 
>document using "do shell script" and insert the result  after the original 
>selection. :)
>
>I have my script set to use the entire current line if nothing is  selected. 
>It also uses the appropriate interpreter (php -r, perl -e,  ruby -e, etc.) 
>based on the source language of the document. It's  great for quickly testing 
>a portion of code while working on a larger  project.

Is your script posted somewhere?

I have tried that kind of thing but do shell script always starts a new 
environment and anything you have defined as a shell variable disappears. 
Setting up a Terminal.app window and making the Applescript run tell 
application "Terminal" to do script "fill it in" in window "named" allows you 
to set things up in advance.

The directory:
<ftp://ftp.macnauchtan.com/Software/BBEdit/> contains
<ftp://ftp.macnauchtan.com/Software/BBEdit/WorksheetOpen_ReadMe>
<ftp://ftp.macnauchtan.com/Software/BBEdit/WorksheetOpen>
<ftp://ftp.macnauchtan.com/Software/BBEdit/WorksheetShopen>

which I use to automatically open and set up environment variables when I open 
a worksheet.

<ftp://ftp.macnauchtan.com/Software/Progress/tViewInit>
<ftp://ftp.macnauchtan.com/Software/Progress/tView.text>

Is some drivel I prepared to open a named Terminal.app window for the purpose.

BareBones has done a lot with the #! menu item that ought to make simple text 
files more amenable to embedded shell commands but I haven't figured it all 
out. Part of it is that I'm stuck at version 8.5.2 because I simply have to be 
able to continue using my SE/30, OS 7.5, file server with OS 10.3.9. That box 
can still talk to my oscilloscope using RS232 and a.out.

There is also an "execute text" service that I found somewhere. It is 
essentially a do shell script in a new shell instance.

gedit has an easy to use procedure for running shell commands and you can pass 
output from a command to the current insertion point. It's actually close to 
being a workable development environment for simple things that don't justify 
Eclipse or cvs. But. . . It isn't nearly the friendly editor that BBEdit is.
-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to