I am looking for a script to attach to a folder which will duplicate an incoming file into several other folders.
Any help would be appreciated
I am looking for a script to attach to a folder which will duplicate an incoming file into several other folders.
Any help would be appreciated
This might work as long as there are no files with the same name in the destinations for the dupes. You need to enter the paths to the destination folders in the first line, separated by commas.
property target_destinations : {"path:to:destination 1", "path:to:destination 2", "path:to:destination 3"}
on adding folder items to this_folder after receiving added_items
tell application "Finder"
repeat with item_ in added_items
repeat with destination_ in target_destinations
duplicate item_ to folder destination_
end repeat
end repeat
end tell
end adding folder items to
– Rob