Hacker News new | ask | show | jobs
by mjs 593 days 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`

2 comments

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?