At 20:19 -0800 11/28/12, Randall Venhola wrote: >I have been reading the BBEdit User Manual and I am stuck.My goal is to have >the output of my GNU Makefile to become a clickable results browser. I have >tested the Makefile and it works fine. I open the Applescript editor and then >open the BBEdit dictionary. Then I start writing a script. I get this far: > > >tell application "BBEdit" > > run unix script "build_myapp.sh" > >end tell > > >I created build_myapp.sh and put it on my PATH. It verified that it properly >invokes GNU make with the command line parameters I want. > >I compile the script and drop in the BBEdit scripts folder. It shows up in the >Scripts menu. I try to run it and I get this error message: > >BBEdit got an error: An error of type 13304 has occurred." number 13304 > > >So the above error message is problem 1. > >Problem 2 is how do I re-direct the output to a results browser? I'd like the >compiler errors to show up so that I can click on them.
Almost surely the application BBEdit was not started up from within from your UNIX login application - Terminal.app zB. Apple's OS does not handle $PATH changes in a .profile or the like when applications such as BBEdit are started from Finder. Everything demands full path names and every shell command issued will bring up a new shell to execute it after it removes any $PATH mods you previously made, even in the same Applescript. BBEdit worksheets help a bit and you could use the osascript tool to run your script fro a command line in a worksheet. I'm stuck on OS 10.3.9 because I refuse to give up my SE/30 file server so my BBEdit worksheets are likely not current. With that caveat, <ftp://ftp/macnauchtan.com/Software/BBEdit/> has some hacks I use to make worksheets work more like MPW with environment variables that are sticky. -- --> Halloween == Oct 31 == Dec 25 == Christmas <-- -- -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
