Question to enhancement of -sep option in version 8.91

Started by herb, May 06, 2012, 08:25:31 AM

Previous topic - Next topic

herb

Hello Phil,

thanks for the new version 8.91 of ExifTool.
In history I have read that the -sep option has been enhanced: "Enhanced -sep option to also apply when copying tags"

But it is unclear to me when this will happen.
Can you please give an example to make it clear to me.

Thanks in advance
Herb

Phil Harvey

Hi Herb,

I should clarify this comment in the history.  It was actually an inconsistent application of the -sep option.  For example, for a file with keywords "one" and "two", this command:

exiftool "-title<keywords" -sep ";" a.jpg

worked properly, and gave a title of "one;two".

But this command

exiftool "-title<$keywords" -sep ";" a.jpg

incorrectly gave a title of "one, two".  (Note that the above quoting is for Windows.  Mac/Linux would require single quotes around the first argument.)  See this thread for the bug discovery.

The difference is that the -sep option wasn't applied when interpolating tags in a string.  This is fixed in 8.91, so the 2nd command now gives the same results as the first.

- Phil

Edit: I have changed the revision history on the ExifTool web site to reflect this.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

herb