我一直在为我的工作从事这个项目,其中涉及将选定的信息从计算机备份到我们的一台服务器。到目前为止,我已经发布了几个问题并得到了很多宝贵的帮助,所以感谢大家!我遇到的当前错误是尝试复制涉及多个错误的选择时。如果我尝试复制一个文件夹,它就可以正常工作,但多个文件夹就不太好用了。代码如下
display dialog "Please enter your augnet username" default answer "username"
set username to (text returned of result)
set server to "smb://orgs.augsburg.edu"
try
mount volume server
on error
display dialog "Either you are already connected, or there was a problem reaching the server. Please disconnect and try again."
end try
delay 3
tell application "Finder"
set backup to make new folder at folder "ORGS:Information Technology:www:kb_images:Migration Testing:" with properties {name:username}
end tell
set theSelection to choose folder with prompt "Please select what you would like to transfer" with multiple selections allowed
tell application "Finder" to duplicate folder theSelection to backup
任何人都可以给我任何涉及多个文件夹选择的帮助,非常感谢!