这是一个创建于 3900 天前的主题,其中的信息可能已经有所发展或是发生改变。
想利用Automator弄个简单的ADB安装脚本,搜索了半天,也没搞明白怎么获得文件的路径
tell application "Terminal"
do script "adb install " & filepath
end tell
只要把filepath获取到就行了。
1 条回复 • 2014-08-05 16:11:46 +08:00
 |
|
1
zer 2014-08-05 16:11:46 +08:00
自己搞定了 on run {input, parameters} set filepath to POSIX path of input tell application "Terminal" do script "adb install " & filepath end tell end run
|