Launch Application from Terminal
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.
'PC팁' 카테고리의 다른 글
유용한 사이트 총 모음 -2014년 버전 (0) | 2014.04.11 |
---|---|
크롬 사용자들을 위한 꿀 TIP (0) | 2014.04.09 |
Tuxera에서 파티션이 read-only로 되었을 때 해결법 (0) | 2014.03.30 |
한국인터넷진흥원의 윈도우XP 전용 백신 보급 안내 (0) | 2014.03.19 |
MS 원노트 203 무료 (0) | 2014.03.19 |