苹果Mac os系统中在终端下打开APP应用程序方法介绍
用户在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.
上一篇: 苹果MAC系统中Safari总是跳出是否信任插件的提示怎么办?
下一篇: 吓我一跳!