On Oct 18, 2010, at 7:24 AM, Uli Kusterer wrote: > On Sep 13, 2010, at 11:15 AM, Johannes Gilger wrote: >> The only thing still bugging me is that the GitX.app starts in the >> background when invoked using 'gitx'. I don't know if this is a bug or a >> feature and I don't know immediately where to look for it. > > What are you using to launch the app? You *should* be using Launch Services. > Launching it directly leads to issues like this one. One *could* use > TransformProcessType() like the password command line tool does, but avoid > that if you can.
It's using the scripting bridge, but apparently I need to set the launch flags (SBApplication -setLaunchFlags:) as the default includes kLSLaunchDontSwitch. > That reminds me, would be nice if someone rewrote the command line tool to be > faceless and send an Apple Event to GitX.app to do the actual asking, then > retrieved the string from that and printed it again. I did rewrite it to use scripting, but I don't have anything that returns content. If you want to see output in the terminal why wouldn't you use git? --Nathan http://brotherbard.com/
