Copy files from Flash disk or CD

I am attempting to copy files from a Flash disk or CD to a folder on my desktop. I’ve read this old forum post and tried the code suggested there without any luck:
http://bbs.applescript.net/viewtopic.php?pid=52987

I’m sure there is something simple I’m missing- can anyone help with the following script? Thanks!

Here’s the error message:
Finder got an error: Can’t set folder “MacintoshHD:Users:admin:Desktop:carddownloads” to every file of folder “MacintoshHD:Users:admin:Desktop:CARD:cardfolder”.


set theFiles to ((path to desktop as string) & "CARD:cardfolder")
--have also tried "CARD:cardfolder:"
--have also tried as alias
set desktopfolder to ((path to desktop as string) & "carddownloads")
--have also tried "carddownloads:"

tell application "Finder"
	duplicate every file of folder theFiles to folder desktopfolder with replacing
end tell

Just got it. Thanks.


set this_folder to "MacintoshHD:Volumes:CARD" as alias

set dest_folder to ((path to desktop as string) & "carddownloads")
tell application "Finder" to duplicate every file of this_folder to dest_folder with replacing