【发布时间】:2013-08-17 13:22:58
【问题描述】:
我正在尝试将我们网络上的文件夹备份到我的桌面,但我不确定如何访问共享网络上的文件夹。我的代码如下:
on run {input, parameters}
set desktopFolder to "Macintosh HD:Users:James:Desktop:App Backups:"
set todayDate to do shell script "date '+%Y.%m.%d'"
set newFolderName to "Backup " & todayDate
set destinationFolder to desktopFolder & newFolderName
set sourceFolder to "smb://svr01/IT_Department/Design/_team/James/App"
tell application "Finder"
make new folder at alias desktopFolder with properties {name:newFolderName}
copy folder sourceFolder to folder destinationFolder
end tell
return input
end run
我应该使用 smb://... 地址还是 Volumes/.... 地址,我应该如何格式化?顺便说一句,我完全是 AppleScript 新手!
谢谢 詹姆斯
【问题讨论】:
标签: macos applescript finder automator