私は自分の仕事のためにこのプロジェクトに取り組んでいます。これには、コンピューターからサーバーの 1 つに選択した情報をバックアップすることが含まれます。これまでにいくつかの質問を投稿し、貴重な助けをたくさん得ました。私が遭遇した現在のバグは、複数のエラーを含む選択を複製しようとしたときです。1 つのフォルダーを複製しようとすると問題なく動作しますが、複数のフォルダーを複製するとうまくいきません。コードは以下です
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
複数のフォルダを選択する際に、あなたの助けを借りていただければ幸いです。