From: Jim I. <ji...@ap...> - 2002-04-09 04:46:15
|
Lizardo, Are you sure HOME is not defined. When I launch Wish by double-clicking on it in the finder, then do parray env In the Tk console window, I see HOME, PATH, SHELL, USER & __CF_USER_TEXT_ENCODING. Jim > Hi, > > I tried what you said and it didn't work. The binary startup script > "tkfpw" demands the definition of the environment variable > "TKFPW_HOME". That's defined in my ".cshrc" file. > > I'm speculating here, but when I double-click the "TkfPW.app", the > "Finder.app" performs the action, not me, and it doesn't recognize the > environment variable. > > Is it possible to edit and define the environment variable in the > "AppMain.tcl" script? > > I'm sending to you the "AppMain.tcl" script. > > > > Notice that the "TkfPW" version 1.3 (116 Kb of download), > ftp://ftp.ec-nantes.fr/pub/DMN/TkfPW > is pretty simple to install; takes less than five minutes. All you have > to do, after running the "Install" script as root, is to comment out > line 3 of "tkfpw": > exec wish "$0" "$@" > > and setenv "TKFPW_HOME". > > Running on my system is > $ /Applications/Wish\ Shell.app/Contents/MacOS/Wish\ Shell -f > /usr/local/bin/tkfpw > > Still, there are problems of geometry and functionality. > > Thanks, > Lizardo H. C. M. Nunes > > ...But we preach Christ crucified, to the Jews a stumbling block, and to > the > Greeks foolishness;(...)but God has chosen the foolish things of the > world > to confound the wise, and God has chosen the weak things of the world to > confound the things which are strong;(I Cor.1:23&27) > > ------------------------------------ > From: Jim Ingham <ji...@ap...> > Date: Mon Apr 08, 2002 03:22:06 PM America/St_Johns > To: "Lizardo H. C. M. Nunes" <li...@ur...> > Cc: tc...@li... > Subject: Re: [MACTCL] [ANS] Running *.tcl scripts > > The other way to do this (probably appropriate for TkfPW) is to make a > copy of the Wish Shell application, call it something suggestive like > TkfPW. Then make a directory in Resources in the App package called > Scripts. Put a script called AppMain.tcl there which contains your > startup code. The Scripts directory will also be added to the auto_path > in Tcl, so you can put all your other packages there, and the tcl script > loading code will find them (provided they have tclIndex's etc...) Then > if you want to get fancy, you can change the icon to your own icon, and > even make your own document types so you can claim .f files, or whatever > you want... > > Jim > -- ++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++= Jim Ingham ji...@ap... Developer Tools - gdb |