Good afternoon,

On 26/2/08 at 2:28 AM -0600, Aaron Hsu <[EMAIL PROTECTED]> wrote:

Does anyone know if it is possible to "pipe" output such as the contents of a file to another program? What I am doing is that I have a REPL that reads in code. What I want to be able to do is make changes to code in BBEdit, and then send it into a running instance of my environment, so that, for example, I can make changes to the code and have those changes take effect in the running instance without having to reload and re-execute everything. Is this possible?

What is REPL?

Anyway, I doubt that you can get BBEdit to reload code on behalf of another program. But it's easy enough to write a script (Perl, AppleScript, etc) that can tell the other program that it's time to re-read the code file. I do something similar with apache/mod_perl. After I make code changes I hit a command key which triggers a script (within BBEdit) to tell apache to reload.

As for how to have code changes take effect without reloading; that will depend on the program that is running the code. Does it support live code changes?


Charlie

--
   Charlie Garrison  <[EMAIL PROTECTED]>
   PO Box 141, Windsor, NSW 2756, Australia

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

--
------------------------------------------------------------------
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