欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

苹果Mac os系统中在终端下打开APP应用程序方法介绍

程序员文章站 2022-05-03 23:04:46
在Mac os平台上有时候需要在Mac终端里面配置一些文件,这时候就需要用命令在终端里面打开app应用程序,那么,在Mac os中如何打开APP应用程序呢?针对此问题,本文就为大家进行解答... 15-05-06...

  用户在mac os平台上配置文件的时候有时候需要在mac终端里面配置一些文件,这时候就需要用命令在终端里面打开app应用程序,但是有很多的用户不会使用终端命令,小编为大家提供了一个在终端下打开app应用程序的教程。

苹果Mac os系统中在终端下打开APP应用程序方法介绍

  打开终端 直接输入 open /applications/xxx(应用的名称).app 比如打开itunes输入:open /applications/itunes.app   (注意open之后需要空格再输入斜杠 / )

  mac 下在终端中打开应用程序的命令

  from:http://macosx.com/forums/howto-faqs/29520-how-launch-application-terminal.html

  the command is simply open (which can also be used for opening directories). the most basic example of launching an application:

  open /path/to/some.app

  more complex possibilities also exist:

  open "/volumes/macintosh hd/foo.txt"

  opens the document in the default application for its type (as determined by launchservices).

  open /applications/

  opens that directory in the finder.

  open -a /applications/textedit.app "/volumes/macintosh hd/foo.txt"

  opens the document in the application specified (in this case, textedit).

  open -e "/volumes/macintosh hd/foo.txt"

  opens the document in textedit (the -e option specifies textedit).

  open http://www.apple.com/

  opens the url in the default browser (lynx, naturally *wink*)

  open "file://localhost/volumes/macintosh hd/foo.txt"

  opens the document in the default application for its type (as determined by launchservices).

  open "file://localhost/volumes/macintosh hd/applications/"

  opens that directory in the finder.