From: Jim I. <ji...@ap...> - 2003-01-27 19:13:24
|
Jack, Cool, thanks, I will take a look. Jim On Monday, January 27, 2003, at 07:39 AM, Jack Jansen wrote: > > On Friday, Jan 24, 2003, at 19:52 Europe/Amsterdam, Jim Ingham wrote: >>> >>> 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. > > Jim, > for Python I gave up, and added a helper application PythonLauncher, > which is the owner of the ".py" files. It will fire up a new > interpreter for each script double-clicked. (It does a couple of other > things too, like allowing you to set preferences, and chose whether > you want a Terminal.app window and more goodies, if you > option-double-click your script). > > The whole thing is a fairly simple Cocoa application, if you're > interested look at Mac/OSX/PythonLauncher in a Python 2.3a1 source > distribution or on sourceforge. Feel free to steal the whole thing, > modifying it to do the right thing for wish/tcl is probably only a > couple of minutes of work. > -- > Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack > If I can't dance I don't want to be part of your revolution -- Emma > Goldman > > -- Jim Ingham ji...@ap... Developer Tools Apple Computer |