Hi all-
Any help with this will be much appreciated - I've been banging my head against this all day and I know it must be something very simple.
All I'm trying to do is duplicate a file from one location to another, using applescript. Everytime I run my script, I get an AppleScript Error:
"Finder got an error: Can't set folder "/Users/Brock/Documents/" to file "/Users/Brock/lucy.jpg"."
Below is a copy of my script. There are three different ways of copying I've tried, and each fails the exact same way. What could be going on? It's driving me nuts!
-------------------
set ExportFolder to "/Users/Brock/Documents/"
set PictureThing to "/Users/Brock/lucy.jpg"
tell application "Finder"
do shell script ("cp " & (quoted form of POSIX path of PictureThing) & " " & quoted form of POSIX path of ExportFolder)
duplicate file PictureThing to folder ExportFolder
duplicate file "/Users/brock/lucy.jpg" to folder ("/Users/brock/Documents/")
end tell