Rename MTS-files not working when dropping folder?

Started by Fulco, November 16, 2017, 09:21:14 AM

Previous topic - Next topic

Fulco

When I drop MTS-files directly into the Terminal they will be renamed as should be:

exiftool -d %Y%m%d%H%M%S%%-c '-TestName<${DateTimeOriginal}.%e' /Users/Fulco/Pictures/Test/00153.MTS /Users/Fulco/Pictures/Test/00235.MTS
'/Users/Fulco/Pictures/Test/00153.MTS' --> '/Users/Fulco/Pictures/Test/20160228162057.MTS'
'/Users/Fulco/Pictures/Test/00235.MTS' --> '/Users/Fulco/Pictures/Test/20171018191004.MTS'
    0 image files updated
    2 image files unchanged



If the folder is dropped with the same files into the Terminal nothing happens:

exiftool -d %Y%m%d%H%M%S%%-c '-TestName<${DateTimeOriginal}.%e' /Users/Fulco/Pictures/Test
    1 directories scanned
    0 image files read



This behaviour happens only with MTS-files both on my iMac and MacBook. I use Exiftool 10.66. Is this normal behaviour?

- Fulco

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Fulco

I've added -ext "*" --ext DS_Store to the command and now all works fine. Thank you for pointing me in the right direction!

- Fulco