almai
12/8/2014 - 4:49 PM

Copy files from on folder to another folder

Copy files from on folder to another folder

tell application "Finder"
	set target_folder to (choose folder with prompt "Choose the target folder:")
	set the_files to files of folder (POSIX file "/Users/alex/Desktop/test" as alias)
	repeat with this_file in the_files
		set this_file_string to this_file as string
		duplicate this_file to target_folder with replacing
	end repeat
end tell