Comment by mjs
2 years ago
Does `open` give focus? It used to, but since a few releases ago the app opens in the background, which is pretty annoying.
My poor workaround is to use osascript: `tell application "System Events" to set frontmost of process "Finder" to true`
Apparently, it does. There is a -g flag (background) to prevent focus.
Isn’t open opening apps in the background a consequence of having “secure keyboard entry” enabled in Terminal.app?