|
From: Michael M. <mic...@na...> - 2006-05-26 21:06:27
|
What I'm doing, in a nutshell, is building a wrapper inside an application
bundle that accepts user inputs, then launches a new program based upon
those inputs while still running within the framework of the bundle.
I can do this with a shell script. For instance, if I specify a shell
script as my CFBundleExecutable, and it contains the following lines:
#!/bin/sh
exec MyProgram
Then MyProgram will take over from the shell script and the O/S thinks that
all is still well with the app (icon stays in the dock, menus are still
active, etc.). However, if my CFBundleExecutable is a Tcl/Tk script
containing the following:
exec MyProgram &
destroy .
Then MyProgram will launch just fine, but the "destroy ." command seems to
tell the O/S that the app has terminated. In other words, the icon
disappears from the dock, menus go away, etc.
I think that execl would provide an equivalent to the shell "exec" command,
but unfortunately it's not implemented for the Mac.
On 2006-05-26 15:36, "Jeff Hobbs" <je...@ac...> wrote:
> exec .... &
> exit
>
> ??
>
> Jeff Hobbs, The Tcl Guy, http://www.ActiveState.com/
>
> Michael McFarlane wrote:
>
>
> Does anyone know of a way to achieve the functionality of the Tclx "execl"
> call on the Mac version of Tcl/Tk? The execl call effectively replaces the
> current Tcl/tk process with a new program as specified in the arguments for
> the execl call. This is precisely the behavior I'm seeking, but the Mac
> version of Tclx apparently doesn't implement this feature.
>
> Thanks for any help or suggestions!
> Mike M.
>
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
> _______________________________________________
> Tcl-mac mailing list
> Tc...@li...
> https://lists.sourceforge.net/lists/listinfo/tcl-mac
|