I just wanted to let everyone know that I was able to get BBEdit (in classic using 
applescript 
1.6 )  from inside BBEdit to automatically run the current window of perl code via the 
terminal.

In case you didn't know, any file with a ".command"  extension in OS X
will be run via the terminal if you double click it in the finder
or write an applescript to OPEN that file via the finder.

So I wrote a simple shell script that runs my perl scripts in 
my local cgi-bin folder.

Then I wrote an applescript that tells the finder to open the
shellscript.command  file which the finder sends to the terminal app to run.

I then placed this complied applescript in the script folder for BBEdit
so that the applescript is in the BBEdit menus for quick access.

works great!

I also wrote  version that sends it to the my browser to run 
to use with cgi and form input data testing  etc...  Now whatever
you are writing in BBEdit can be run from BBEdit via the scripts menu.  

I have in my BBEdit menu

run via terminal
run via browser

This does the job fine until the REAL BBEdit for OS X released   ; )


Later


Russ

Reply via email to