From: Jeff H. <je...@ac...> - 2011-04-10 04:42:58
|
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. 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. Jeff |