Order of operations - question

Started by Sunny, October 30, 2024, 11:50:12 AM

Previous topic - Next topic

Sunny

I would like to make sure that I understand correctly the order of operations

-tagsFromFile SRCFILE or FMT
exiftool -One=1 -tagsFromFile s.jpg -Two -Four=4 -Three d.jpg

  • First, the tag assignment -One=1 is performed because it is on the left side of the -tagsFromFile parameter
  • Next, the operations on the right side of the -tagsFromFile parameter are performed , first coping of tags -Two and -Three and then assignment tag Four=4.

In other words, all operations that are on the left side of the -tagsFromFile parameter are performed first, then the operations that are on the right side of the -tagsFromFile parameter are performed, i.e. in the order Copy tags and then Assign tags.

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 ($).