【发布时间】:2015-04-14 03:43:03
【问题描述】:
我正在使用 applescript 在 mac os 上安装驱动器。
tell application "Finder"
try
mount volume "http://user:pwd@196.145.75.18/mydrive/page.apsx/webdav"
end try
end tell
我将驱动器名称设为“webdav”,在共享部分的侧边栏中,我将服务器地址 (196.145.75.18) 作为驱动器名称。
我想将它们都更改为“mydrive”。
有谁知道如何使用 applescript 来完成它?如果不能使用applescript,那么有没有其他方法可以做到这一点?
【问题讨论】:
-
顺便说一句:'mount volume' 是来自 'StandardAdditions' 的命令,因此您无需告诉 Finder 执行该命令。
标签: macos applescript