From: Jim I. <ji...@ap...> - 2003-09-16 17:14:32
|
This error has been discussed many times on this list already. Search=20= the list for SetFrontProcess to find more details. The simplest way to make a packaged, double-clickable Wish application=20= on Mac OS X is described in the tk/macosx/README: - Wish checks the Resources/Scripts directory in its application bundle=20= for a file called AppMain.tcl, if found it is used as the startup script and=20= the Scripts folder is added to the auto_path. This can be used to emulate=20 the old OS9 TclTk droplets. Hope this helps, Jim On Sep 15, 2003, at 12:04 PM, Al Mansur wrote: > Hi, > > I'm trying to get a simple, 1 file, tk script to run on Mac OS X,=20 > 10.2.6, and having little success. The script is (or is supposed to=20 > be) an installation wizard, runs fine on Windoze and I'd like to run=20= > it as a starpack. The Mac seems to be problematic in support for this=20= > so I'm looking at less elegant solutions. Like=20 > TclTkAquaStandalone-8.4.4.dmg on a CD with my script. > > What I have is the Standalone app bundle rooted at /Users/alm/wsa with=20= > a sym-link, wish, pointing into it and my script in .../wsa as well. I=20= > also have TclTkAqua-8.4.4.dmg installed in the usual place and I've=20 > played with tclkit-macosx-aqua.app.tar.gz so that stuff is here, too. > > What you see below is a run of standalone wish, note the ./, followed=20= > by a run of 'ordinary' wish. Both issue the GetProfileBySpaceFromShmem=20= > message on the terminal. My script's window comes up in both cases,=20 > works in the 'ordinary' case but every click in it for the standalone=20= > case generates a 606 message and nothing happens in the window. I=20 > could almost swear that the messages started with my use of Standalone=20= > today; I don't remember seeing it last week with numerous other tcl=20 > runs. > > > > [nstor-nstors-Computer:/Users/alm/wsa] root# ./wish ins.tcl > (CSYNC DEBUG) : GetProfileBySpaceFromShmem returned NULL for 'RRRR' :=20= > Calling Dispatcher. > SetFrontProcess failed,-606 > ^C > [nstor-nstors-Computer:/Users/alm/wsa] root# wish ins.tcl > (CSYNC DEBUG) : GetProfileBySpaceFromShmem returned NULL for 'RRRR' :=20= > Calling Dispatcher. > [nstor-nstors-Computer:/Users/alm/wsa] root# > > > > Any suggestions? Do you think Standalone tcl/tk on a CD will work? > > Al > > P.S. The last time I used tcl/tk was in '97, before namespaces and=20 > tclkit. > > > > > Al Mansur > Senior Sortware Engineer > nStor Corporation, 6190 Corte Del Cedro, Carlsbad, CA 92009 > 760-683-2547=A0 al...@ns... > Come seenStor at GBET 2003 (booth 504) October 1st and 2nd in Los=20 > Angeles! > > -- Jim Ingham ji...@ap... Developer Tools Apple Computer |