ok a bunch of folks asked for the applescript that I wrote so that you can use BBEdit to send a perl script to the terminal to be run etc..... sending to your browser is so easy I will let you figure that out : ) 1) I'm using the tcsh shell. 2) change the shellText to whatever you want, since that is what is saved into the shell script .command file which the finder then runs at the end. note you can do stuff like top and ls etc... then you can run unix command line stuff from BBEdit as well. not just run perl scripts very... cool 3) Note my shellpath starts 'osx' (the name of that hard drive) make your path whatever you want/need 4) 'name of window 1' is the name of your first window/document opened in BBEdit. odds are something like filename.cgi so the shell script file saved will be filename.cgi.command (I'll leave it to you to filter out the middle if you want) 5) a big yuck are paths : versus / applescript in os x uses : still for compatibility reasons 6) works great for me your mileage may vary : ) global shellpath property crlf : (ASCII character 13) & (ASCII character 10) tell application "BBEdit 6.0" set shellText to "#!/bin/tcsh" & crlf & crlf & "perl osx/Library/WebServer/CGI-Executables/" & name of window 1 & crlf set shellpath to "osx:Library:WebServer:CGI-Executables:" & name of window 1 & ".command" set fileref to open for access (file (shellpath)) with write permission write shellText to fileref close access fileref end tell tell application "Finder" open item shellpath end tell