on adding folder items to this_folder after receiving these_items
tell application "Finder"
duplicate every item of this_folder to folder "Photographic:Pictures I Like:"
move every item of this_folder to folder "Photographic:net:To Be Posted:"
end tell
end adding folder items to
Thanks, Stefan.
I’m not ungrateful for the help, but it seems a little inelegant if I have to copy everything from one folder to another. I just want to copy the single item that’s NEW (that’s being saved into the folder by Photoshop).
I must have taken stupid pills today, Stefan, because it’s still not clear.
Let’s assume the ‘hot folder’ already contains 291 files and I’m adding 1 file to it. Are you saying only the one new one will be copied? It looks like all 292 file will be copied.
O.K. if you want to keep the existing files in the hot folder,
the code must be changed:
on adding folder items to this_folder after receiving these_items
repeat with this_item in these_items
tell application "Finder"
duplicate this_item to folder "Photographic:Pictures I Like:"
move this_item to folder "Photographic:net:To Be Posted:"
end tell
end repeat
end adding folder items to
You don’t need the repeat loop. Duplicate takes a list:
on adding folder items to this_folder after receiving these_items
tell application "Finder"
duplicate these_items to folder "Photographic:Pictures I Like:"
duplicate these_items to folder "Photographic:net:To Be Posted:"
end tell
end adding folder items to
I also changed the ‘move’ to duplicate. Didn’t the op want to copy the items?