Mac OS X: Bring GUI applications to foreground when launched from the command line

前端 未结 2 683
忘了有多久
忘了有多久 2021-01-13 13:25

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/         


        
相关标签:
2条回答
  • 2021-01-13 13:59

    There seems to be even shorter variant:

    > open -a TextEdit

    0 讨论(0)
  • 2021-01-13 14:14

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

    > open /Applications/TextEdit.app
    
    0 讨论(0)
提交回复
热议问题