I've created a script that duplicates some files to a particular folder and then moves them to another folder. The script seems to work fine when run alone. But as soon as I try to make the script a Folder Action Script it does nothing.
System Events is running on the machine, Folder Actions is enabled, and the script is attached to the "Drop" folder.
on adding folder items to this_folder after receiving added_items
tell application "Finder"
set folder1 to folder "DESIGN & PROD:02 WORK IN PROCESS:XXXXXX:Test"
set folder2 to folder "DESIGN & PROD:02 WORK IN PROCESS:XXXXXX:SOURCE"
end tell
try
repeat with i from 1 to number of items in added_items
set theFile to item i as alias
tell application "Finder"
duplicate theFile to folder1
move theFile to folder2
end tell
end repeat
end try
end adding folder items to
Any ideas where I should be looking?
Thank you,
David Wolfe