When I have "Terminal" in the foreground and open another application, the new application opens in the background (rather than the foreground). This is rather annoying, as I always need to Cmd+Tab to the application after opening it.
This is not limited to the "open" command in Terminal - it also is occurring when I click the icon in the dock to open the application, or open the application using Spotlight (Cmd+Space).
Why is this happening, and how do I change it so that applications open in the foreground and context switches from Terminal to the newly opened application?
Note: this is a relatively new Mac, and a colleague who has also received a new Mac is also 'suffering' the same problem.
Music.app
and then opening another app from the dock sayNotes.app
... and thenMusic.app
stays in the foreground withNotes.app
opening in the background? If it's just affectingTerminal.app
then I think there's some sort of preference plist setting that's keepingTerminal.app
active in the foreground... but I don't know where to look for that setting unfortunately-g
or-j
option when running theopen
command in terminal right? I.e. Don't runopen -a [application name.app] -g
command, but instead runopen -a [application name.app]
. I don't think this is your issue though, since you say it also happens with other opening methods, so I still think it has something to do with a plist file related to UI/Mission Control/Terminal/Global preferences, but I couldn't say which one.Prefs Editor
by Thomas Tempelmann, that may help. The app essentially does what thedefaults writes/read
commands do, but presented as a GUI app. So you could load any plist in the app and investigate from there? Not sure if it will allow you to modify system plists requiring sudo but certainly any plists in your user directory, i.e. terminal's settings specific to your user.