Sep 29

FCP (7 & X) XML Parser for manual media managing

This post expands on previous attempts at collecting files for multiple purposes (making aliases, copying, batch transcoding, etc.). The tool was written specifically to collect files for coloring in Davinci Resolve, but I’ve found many additional uses.

To catch a glimpse of previous attempts, click here.

“Manually” media manage assets from one location to another, while maintaining identical folder structure.

Other uses:
• Copy only necessary offline media to an external drive for an editor.
• Generate a list of non-conformed media in order to drag and drop into a timeline or Compressor.
• ETC.!

• Download the zip file containing all three apps.
• Textwrangler installed
• Quicksilver installed and running (along with additional plugins to enable its clipboard utility. See here)

To copy non-SAN media onto the SAN/Pegasus Drive

1. Drag and drop your XML onto the app 01 XML Parser Reveal in Finder
2. Select the type of XML you’re processing
3. Textwrangler will process the XML and generate a new document with all the files being used. If there are files that already live on the SAN, there’s no point in duplicating them. In order to skip them, do the following: Go to Text —> Process Lines Containing. Find lines containing: (the name of the SAN) OFFLINE. Check “Delete matched lines”


4. We now have a list of all the files we want to copy. We’re going to copy these to the clipboard (Command+A, Command+C).
5. Launch the clipboard module (I have it set to Shift+F1).
6. If you see the following icon (piece of text), this means one or more of the file paths is incorrect. Either the file does not exist or there’s a typo in there somewhere. Fix ’em.


7. A white document or actual file icon mean the files are real and are drag&drop-able


8. Before we blindly copy the media, it’s a good idea to know how many gigabites will be transferred. Drag the group the the group of files onto 02 Get total size of files v1.2
9. Time to copy the files! Drag and drop them onto 03 CopyWithFolderStructure. Alternatively, you can select the paths in TextWrangler, copy them, and double click the app (it will translate the file paths into files and copy them). A terminal window will pop up and the rsync command will launch. To force quit, hit Ctrl+C.


“02 Get total size of files” launches a terminal window to execute the command du (“disk usage”) in order to calculate total file size.
“03 CopyWithFolderStructure” launches a terminal window to execute the command rsync with the “-R” flag which recreates the entire folder structure of all files. You’re welcome to play with the flags yourself to customize it to your needs (at your own risk, of course).

Tags: , , , , , , , ,


Comments are closed.