1
zhufenggood 2013 年 7 月 20 日 via iPhone 打开terminal,把文件拖到terminal窗口上就变成路径了。
|
2
dorentus 2013 年 7 月 20 日 你是想要去参数?
Cocoa GUI 程序的话,这样应该可以(http://stackoverflow.com/a/5147128/90172): NSArray *arguments = [[NSProcessInfo processInfo] arguments]; 其它的话,搜关键字『ARGV』吧,例如 https://www.google.com/search?q=ARGV+bash |
3
dorentus 2013 年 7 月 20 日
打错字了。。第一行里的应该是『取参数』。。
|