当前位置: 代码网 > 科技>操作系统>苹果Mac > 苹果Mac os系统中在终端下打开APP应用程序方法介绍

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

2015年05月06日 苹果Mac 我要评论
苹果Mac os系统中在终端下打开APP应用程序方法介绍在Mac os平台上有时候需要在Mac终端里面配置一些文件,这时候就需要用命令在终端里面打开app应用程序,那么,在Mac os中如何打开APP应用程序呢?针对此问题,本文就为大家进行解答... 15-05-06

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

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com