On Jan 11, 2008, at 4:01 PM, Doug McNutt wrote:
At 14:56 -0800 1/11/08, Dennis wrote:
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 sincerely apologize for not responding to this *months* ago. But
better late than never...
Here's a link to my "Run Shell Command" BBEdit script, which simply
executes the selection or current line as a shell command and returns
the output on the line below. You can also find a couple other of my
favorites (Toggle Quotes, Join Line with Next, Calculate):
http://homepage.mac.com/dennisrande/FileSharing41.html
Feedback, improvements, and fixes gladly accepted!
-Dennis
--
------------------------------------------------------------------
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]>