From: Jim I. <ji...@ap...> - 2003-01-24 18:52:29
|
Vince et al... On Friday, January 24, 2003, at 06:56 AM, Vince Darley wrote: > This question is raised on this list every week or so -- please do > check > the archives for the solution! This has been discussed often, though the SourceForge mailing list server isn't responding to me right now so I can't point to a thread. > > However, this does raise the issue: why don't we make Wish actually > behave, by default (as on Windows) so it sources .tcl scripts out of > the > box? Of course, one difference is that on Windows, a new wish > executable > is launched for each script dbl-clicked on, and on MacOS that > presumably > wouldn't happen? That is the big problem. On both Classic Mac OS and on X if you make an App the owner for a given document type, then the documents will be loaded into the running copy of the App if it exists. This is almost surely NOT what you want. You can almost still get this to work by defining the tk::mac::OpenDocument proc... Almost because there is a bug in how the paths from the odoc event get munged... There is a workaround by using TclAE instead. Not sure what the status of this all is. The way I suggested to do this is to dup the Wish Shell, and put your script in Resources/Scripts/AppMain.tcl. Jim > > -- Vince > > On Fri, 24 Jan 2003, Michael A. Cleverly wrote: > >> I've installed the Tcl/Tk Aqua BI on OS X. I can run Wish scripts if >> I >> first open a terminal window and do it from a shell prompt. How do I >> get >> these same scripts to launch if the user clicks on them from the >> desktop? >> >> Thanks, >> >> Michael >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Tcl-mac mailing list >> Tc...@li... >> https://lists.sourceforge.net/lists/listinfo/tcl-mac >> > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > -- Jim Ingham ji...@ap... Developer Tools Apple Computer |