Copy folder

Hi all:

Is there a way I can copy the entire contents of one folder to another?

I tried

copy (every item of theTempFolder) to theJPGPath with replacing

and received a syntax error(Can’t set the JPGPath with replacing to theTempFolder: Access not allowed)

I then tried

duplicate (every item of theTempFolder) to theJPGPath with replacing

which didn’t seem to work either. Any help would be appreciated.

set folderOne to "Mac HD:Desktop Folder:To Process:"
set folderTwo to "Mac HD:Desktop Folder:Processed:"

tell application "Finder" to duplicate every item of folder folderOne to folder folderTwo with replacing

I don’t think your script defined the variables for your folders as “Folders”.

Does this copy the files wihtout adding the “copy” text to the end of it?

Well, there’s only one way to find that out.