想利用Automator弄个简单的ADB安装脚本,搜索了半天,也没搞明白怎么获得文件的路径
tell application "Terminal"
do script "adb install " & filepath
end tell
只要把filepath获取到就行了。
tell application "Terminal"
do script "adb install " & filepath
end tell
只要把filepath获取到就行了。
1
zer OP 自己搞定了
on run {input, parameters} set filepath to POSIX path of input tell application "Terminal" do script "adb install " & filepath end tell end run |