Home
Sign Up
Sign In
V2EX
›
问与答
Automator 中,如何获取文件的路径?
zer
·
Aug 5, 2014
· 3711 views
This topic created in 4489 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
zer
OP
Aug 5, 2014
1
自己搞定了
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
·
Privacy
·
Solana
·
2360 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 12:54
·
PVG 20:54
·
LAX 04:54
·
JFK 07:54
♥ Do have faith in what you're doing.
❯