Smart Mover's Copy File Task can easily be used to copy files based on their content. This gives you the ability to sort them into different sub folders and process them differently.
For example, you may want some files to uploaded to Enterprise into different Issues or Categories... while still other files are sent directly to Elvis.
In general, you use Regular Expressions to determine if a given file is to be copied or not. If the expressions matches then the file is copied. If not, then it is not. (See Appendix A of the Smart Mover User Guide for more information about Regular Expressions.)
The regular expression can be checked against the file name, XMP contents (for images), an associated -metadata.xml file or any text within the file.
For example: let's say we have photographers sending in images which we want uploaded to Enterprise..... but we want those images to be placed in the proper Enterprise Category.
First, we are going to instruct the photographers to enter a code in the XMP Category field of each file. For example, enter "sp" for Sport, or "nw" for News, etc. We do not have to use the Category field, most any unused field will do, but I thought that one was appropriate for this example.
Next, we need to get the image files into a folder that Mover has access to. This could be done using the Get Mail or FTP Get Tasks or simply by dropping the file into a shared folder.
Now that Mover can access the files, we will use a Copy Files Tasks to place each file into an appropriate folder based on the XMP Category set by the photographer.
So we set the desired Source and Destination folders along with "File XMP Contents" regular expression to:
Now only the files that include literally that string in the XMP data will be copied into the Destination folder... leaving those that do not match untouched in the Source folder.
If you are not sure what the XMP data really looks like you can always use Mover's Extract XMP Data Task on some sample files to get some examples.
Another easier way to accomplish the same result is to simply have the photographer include a "category code" in the name of the file itself. For example: "SomeFileName-sports.jpg".
In this case the Task's "File Name" regular expression would look like:
So the file name (without extension) would have to end with "-sports."
You will need to create a similar Copy Files Task for each of the possible Categories.
Finally, we just upload the files from each of the sorted files sub-folders to Enterprise or Elvis using one of the several Tasks available for that purpose.
Please sign in to leave a comment.