use*_*736 9 macos terminal quicksilver
我知道有一个用于quicksilver的终端插件,但我会调用终端命令,它基本上只在后台运行,从不弹出终端窗口.那可能吗?
更新:
我的AppleScript中有以下代码,但它给了我一个错误:
do shell script "/path/to/shell.sh blah"
Run Code Online (Sandbox Code Playgroud)
错误:
curses.setupterm()
_curses.error: setupterm: could not find terminfo database
Run Code Online (Sandbox Code Playgroud)
Applescript 是简单的解决方案,请参阅: http://developer.apple.com/library/mac/#technotes/tn2002/tn2065.html
样本:
do shell script "ifconfig"
do shell script "ifconfig" user name "Anne" password "p@ssw0rd" with administrator privileges
Run Code Online (Sandbox Code Playgroud)
Automator 还可以在后台运行 shell 脚本。
如果您熟悉 XCode,则可以将 NSTask 与 Objective-C 结合使用。
归档时间: |
|
查看次数: |
5624 次 |
最近记录: |