From: Jim I. <ji...@ap...> - 2001-10-23 00:28:04
|
This is a bug... I was trying to be clever and not run the AppInit.tcl script unless I got just 1 argument, so it would run from the terminal as well. I tested it with the "open" terminal command: open "Wish Shell.app" and it worked, but it turns out if you double click from the finder your app gets launched with another argument (-psn_xxxxx) presumably your app's process ID... So this code didn't worked. I checked a fix into the cvs tree, so if you are comfortable with rebuilding Tcl & Tk you can do that. I have a few more things to fix before I put up new binaries, but I will do that later this week. Jim On Monday, October 22, 2001, at 05:00 PM, Tony Lownds wrote: > I wanted to try the AppInit.tcl script, but had no luck: > > ironchef:~% cat /Applications/Wish\ > Shell.app/Contents/Resources/Scripts/AppMain.tcl > set demo [file join $tk_library demos/widget] > tk_messageBox -message $demo > source $demo > > > Maybe I just have the reverse-Midas-touch or something. Does the above > location look right? Any reason the tcl code above would work in the > console but not in AppMain.tcl? > > Running the widget demo in Tk/Aqua is *very* impressive. For a first > release (difficulty of embedding aside :), everything runs really > smoothly! > > -Tony > -- > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > -- Jim Ingham ji...@ap... Developer Tools - gdb Apple Computer |