View Full Version : Applescript - Problem with Finder's Dupplicate command

Mar 18, 2009, 10:32 PM
I want to write an applescript that, when adding a file to a folder, creates a copy of that file at a specific location. I enabled Folder Actions for my folder and assigned it the following script :

on adding folder items to this_folder after receiving added_items

say "Script started"

tell application "Finder"
duplicate added_items to "/Users/Chris/Desktop/test"
end tell

beep 2

end adding folder items to

When I add a file to my folder, say "Script started" is executed, but the script stops there. However, if I change [I]"/Users/Chris/Desktop/test"[I] to [I]desktop[I] without anything else, the script works. The script also works if I write [I]duplicate added_items to this_folder[I]

What's wrong with my folder path???

I'm running OS 10.5.6

Mar 19, 2009, 02:07 AM
You should look into tutorials for proper paths in AppleScript.