내가 폴더 경로에있는 파일이,이 스크립트를 사용하여 다른 폴더에있는 경우 테스트하기 위해 노력하고있어 중복되지 않는 폴더에있는 경우 :은 AppleScript를 파일
set middfilesECON211 to ("/Volumes/middfiles/Classes/Spring14/ECON0211B/HANDOUTS" as POSIX file)
set gDriveECON211 to ("/Users/paolob/Google Drive/Spring 2014/ECON 211/Handouts" as POSIX file)
tell application "Finder"
set foo to every file of folder middfilesECON211
repeat with i from 1 to (length of foo)
if not (exists (item i of foo) is in files of folder gDriveECON211) then
duplicate (item i of foo) to gDriveECON211
end if
end repeat
end tell
나는 무리를 시도했습니다 if not (exists) ...
절의 변형이 있지만 아무 소용이 없습니다.
도움이 될 것입니다. 감사!
http://stackoverflow.com/search?q=[applescript]duplicate+files –