Copy missing files
This is a little Mac OS X Automator workflow that I created to help me consolidate files in two folders that may contain some duplicates. What it does is check the destination folder for the existance of each file in the source folder (and its sub-folders) copying any to the destination folder that aren’t already there.
The big trick was figuring out how to pass filenames containing one or more spaces to a bash script within Automator. The trick, it turns out, is ridiculously simple. Just put the built-in argument representing the filenames passed into the script ($@) in double quotes!
You can get the workflow as an application, and as a workflow and a copy of the GNU General Public License in a zipped archive here.
Leave a Comment