Home
Sign Up
Sign In
V2EX
›
问与答
Automator 中,如何获取文件的路径?
zer
·
Aug 5, 2014
· 3464 views
This topic created in 4375 days ago, the information mentioned may be changed or developed.
想利用Automator弄个简单的ADB安装脚本,搜索了半天,也没搞明白怎么获得文件的路径
tell application "Terminal"
do script "adb install " & filepath
end tell
只要把filepath获取到就行了。
filepath
Automator
adb
1 replies
•
2014-08-05 16:11:46 +08:00
1
zer
OP
Aug 5, 2014
自己搞定了
on run {input, parameters}
set filepath to POSIX path of input
tell application "Terminal"
do script "adb install " & filepath
end tell
end run
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
4698 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms ·
UTC 05:37
·
PVG 13:37
·
LAX 22:37
·
JFK 01:37
♥ Do have faith in what you're doing.
❯