PDA

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




punktilend
Jun 6, 2013, 09:58 AM
Hello,

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?



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

NAME
mdls -- lists the metadata attributes for the specified file

NAME
mdfind -- finds files matching a given query

EXAMPLES

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.

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