At 19:25 -0800 1/28/08, Jon Crump wrote: >this in .tcshrc is what you mean? >set path = ( >/usr/local/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:$path >)
Be very careful about the value of environment variable $PATH in OS neXt. Assuming your default shell is tcsh as set in the /etc/passwd file BBEdit worksheets will execute the global tcsh or csh startup files in /etc and then, if one is present, your .tcshrc in your home directory. You may also set up a $PATH variable in a directory and file you have to create yourself: $HOME/.MacOSX/environment.plist What you set in the plist will set a path variable but watch out. When tcsh executes the startup files in /etc the path you select is overwritten with /bin:/sbin:/usr/bin:/usr/sbin without warning. Also environment.plist is read only at login time to the GUI. Don't expect it to be re-read when you edit it. The defaults tool can read from, and write to, the file though. You can overwrite as you like in your own .tcshrc but that startup file may not get read if the new shell is not a "login file". BBEdit worksheets do read it but do shell script in AppleScript does not unless you force a new shell instance by starting with "/bin/tcshrc". It's all a big mess which I managed to decode by placing "echo $PATH >> $HOME/report" lines in the startup files so I could see what is happening. Including $SHLVL in the report also helps. I finally just emptied all content in the /etc startup files associated with csh and tcsh but I'm not sure that was a good thing. It works for me. Apple's updates do not "correct" them. There is a way to force GUI applications to belong to a shell. It involves executing the application via a direct reference to the executable that's found inside of the contents of the package folder that Finder represents as the "application". It's a PITA but I have made it work at least once. It would be nice if the bbedit tool did that when executed while BBedit is not already running. And, by the way, I'm on OS 10.3.9 because I'm just not ready to discard my SE/30 file server that OS 10.4's Finder refuses to talk to. (Ubuntu does better) -- Applescript syntax is like English spelling: Roughly, though not thoroughly, thought through. -- ------------------------------------------------------------------ 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]>
