copying and moving images - inconsistent behaviour

Started by berliner_ffm, October 05, 2020, 04:16:15 PM

Previous topic - Next topic

berliner_ffm

I have to admin, I am a bit confused.
I have a script that based on parameters will generate an ARG-file for Exiftool to move/copy and at the same time (if the user wishes) rename images.

Example 1 works =>here I am copying an Image and an xmp-Sidecar to a new location. Note, that the TagsFromFile-option is necessary in case the user does not provide fixed locations/filesname, but refers to Exif-Values:


C:\Users\jens\Pictures\_ImportTest\20200330-Test5-3300284.ORF
-v
-charset
filename=UTF8
-tagsfromfile
%d%f.xmp
-o
.

-directory=C:\Users\jens\Pictures\_ImportTest\T4

-execute
C:\Users\jens\Pictures\_ImportTest\20200330-Test5-3300284.xmp
-o
.

-directory=C:\Users\jens\Pictures\_ImportTest\T4

-v
-charset
filename=UTF8
-execute



Example 2: In the second example, I want to move both files, therefor I excluded the -o-Option. But instead of moving both files, the image is copied and the xmp-file is moved:

C:\Users\jens\Pictures\_ImportTest\20200330-Test5-3300284.ORF
-v
-charset
filename=UTF8
-tagsfromfile
%d%f.xmp


-directory=C:\Users\jens\Pictures\_ImportTest\T4

-execute
C:\Users\jens\Pictures\_ImportTest\20200330-Test5-3300284.xmp


-directory=C:\Users\jens\Pictures\_ImportTest\T4

-v
-charset
filename=UTF8
-execute



Example 3: In the third example, I want to copy images with the -o-Option, but instead they are moved:

-@
C:\Users\jens\Documents\60_PT-DEV\bin\..\process\importFiles-20201005193821-6982.csv
-overwrite_original
-v
-FileCreateDate<DateTimeOriginal
-o
.
-filename=Kamboscha-%-6nc-Testimport.%e
-directory=C:\Users\jens\Pictures\_ImportTest\t1

-preservedFileName<FileName


I hope anyone can enlighten me, how to get this behaviour consistent. Thanks in advance!

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

berliner_ffm

Thanks for your quick reply.
Indeed Example 3 is now clear. Sorry for bothering you with this one.

But I can't see, what causes example 2 to copy one file and move the other. Or in other words, why is the first file of example 2 not moved?

StarGeek

Quote from: berliner_ffm on October 05, 2020, 04:50:53 PMBut I can't see, what causes example 2 to copy one file and move the other. Or in other words, why is the first file of example 2 not moved?

The first one is moved because all tags from the XMP are copied.  From the docs on the -TagsFromFile option
   If no tags are specified, then all possible tags (see note 1 below) from the source file are copied to same-named tags in the preferred location of the output file (the same as specifying -all).
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype