开发者

OSX bash - window focusing on launched executables/apps?

开发者 https://www.devze.com 2023-02-22 14:30 出处:网络
If i launch a executable/another app from a bash script, this executable/app starts up normally, but with it\'s application开发者_如何学C window not in focus.

If i launch a executable/another app from a bash script, this executable/app starts up normally, but with it's application开发者_如何学C window not in focus. If you launch the script from a window for example, the bash script calls upon the other executable/app, but you can't see the app's interface because it gets launched below all windows.

For Linux there exist some window managers that can do this, like these tips here:

Is there something for OSX as well?

I realize i can set the active window via AppleScript (osascript via bash), but i wanted to do this without AS.

("tell application \"newapp\" to activate")


My appswitch tool does exactly this.

0

精彩评论

暂无评论...
验证码 换一张
取 消