Mac OS X:从命令行启动时将GUI应用程序置于前台 [英] Mac OS X: Bring GUI applications to foreground when launched from the command line

查看:211
本文介绍了Mac OS X:从命令行启动时将GUI应用程序置于前台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Mac OS X的终端中启动GUI应用程序时,是否有将GUI应用程序置于前台的方法?如果我跑

Is there a way to bring GUI applications to the foreground when starting them from within Terminal on Mac OS X? If I run

/Applications/TextEdit.app/Contents/MacOS/TextEdit

在终端中,TextEdit在后台打开.如果在开发GUI应用程序时使用"make& ./run",这将很烦人.

in Terminal, TextEdit opens in the background. This is quite annoying if you're using "make && ./run" when developing GUI applications.

推荐答案

至少对于TextEdit和类似的GUI应用, open 将起作用:

At least for TextEdit and similar GUI apps, open will work:

> open /Applications/TextEdit.app

这篇关于Mac OS X:从命令行启动时将GUI应用程序置于前台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆