From: Steven <ste...@ya...> - 2011-04-10 09:54:12
|
> > On 2011-04-09, at 8:04 PM, Steven wrote: > > I don't suppose anyone knows a hack to raise the Wish application when it >starts > > > from the command line ? > > On my OSX-10.5/wish-8.5.8/G4 system, all wish apps start up underneath the > > Terminal or Finder. > > > > Once or twice they do make it to the top and get focus automatically.. but I > > > don't know why, and it's not reproducible. > > It's "by design" that launched shell apps don't get front process status. This differs from all other OS's i've used Wish on, and seems a little funny. Generally you want newly created toplevels to have focus. > Someone provided a reference before, but I'll just note that a "work-around" >to have your process be front is to use the tclCarbonProcesses extensions (in >the teapot if you use ActiveTcl), and then 'carbon::setFrontProcess >[carbon::getCurrentProcess]'. You can also set the process name with >carbon::setProcessName, which may be useful for the case that David Zolli hit. Cheers... Though i don't have tclCarbonProcesses on my box currently. Steven |