News for hackers. Stuff that matters.
Re:Useful built-in macOS command-line utilities by mjs on Wednesday November 06, 2024 @05:33AM (#42059558)
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`

Re:Useful built-in macOS command-line utilities by masswerk on Wednesday November 06, 2024 @06:57AM (#42060712)
Apparently, it does. There is a -g flag (background) to prevent focus.
Re:Useful built-in macOS command-line utilities by justletmein on Wednesday November 06, 2024 @03:31PM (#42068883)
Isn’t open opening apps in the background a consequence of having “secure keyboard entry” enabled in Terminal.app?