creating a backup folder with attached script

i want to attach a folder script so when you drag anything inside it, it will copy the selection. basically, treated like if you move something from your desktop to a server or disc image. i want this to be a back up folder. thank you if you know how to do this, would be really helpful. jmarsh

i think…

you may want to double check the syntax on the handler. you can check by going to the applescript help and searching for “folder actions” or opening up the standard additions dictionary and checking out the folder actions info there.

on adding files to thisFolder after receiving fileList

set destinationFolder to "hard disk:folder:folder:"

tell app "finder"
   repeat with eachFile in fileList
       copy file eachFile to destinationFolder
   end
end
end