View Full Version : Automator to find and move videos with different codecs

Jun 6, 2013, 09:58 AM

I have been digging around to find a way to use automator with Final Cut Pro X. Once I have exported/shared a file to a folder from FCX I have it open a Automator application that moves the video file to another location. My problem is that I export different codecs and I need the different codecs to go to different locations. Does anyone know of a way to have automator choose a file by its codec?

Jun 6, 2013, 01:48 PM
Take a look at the mdls and mdfind commands in Terminal.

mdls -- lists the metadata attributes for the specified file

mdfind -- finds files matching a given query


This returns all files that contain "MyFavoriteAuthor" in the kMDItemAuthor meta-
data attribute:

mdfind "kMDItemAuthor == '*MyFavoriteAuthor*'"

In Automator use the Find Finder Items action.

Note : Tested on Leopard.

Jun 6, 2013, 01:54 PM
Thanks for replying with this, helps me out a lot.