Problems copying files with AppleScript
tell application "Finder"
set dest_folder to (path to current user folder)
set src_file to dest_folder & "Desktop:foo.txt"
copy src_file to folder dest_folder
end tell
When I run this script, I get the following error:
Finder got an error: Can't set folder (alias "Macintosh HD:Users:myaccount:") to {alias "Macintosh HD:Users:myaccount:", "Desktop:foo.txt"}.
iMac (20" 2.4GHz C2D), Mac OS X (10.5.6), 2GB RAM, JBL Creature speakers