.args file copy title into SupplementalCategories

Started by loloeroket, August 24, 2024, 02:36:56 AM

Previous topic - Next topic

loloeroket

Hello,

I am trying to copy the content of XMP:Title into XMP-photoshop:SupplementalCategories in a template. The content is separated by commas and if I run the following command:

exiftool -sep ", " "-XMP-photoshop:SupplementalCategories<$XMP:Title" -f -overwrite_original_in_place myfile.jpg

it works. Now I need to use an .args file and when I run

-sep ', '
-XMP-photoshop:SupplementalCategories<${XMP:Title}
it gives the following message:

QuoteInvalid TAG name: "sep ', ' "
Ignored superfluous tag name or invalid option: -sep ', '

I also saw this post https://exiftool.org/forum/index.php?topic=5767.0 and it says to add argument at the line. So I tried

-sep
,

and

-sep
', '

I still get the same:

QuoteInvalid TAG name: "sep "
Ignored superfluous tag name or invalid option: -sep
Warning: Error opening file - ,
Error: File not found - ,
    1 image files updated

Is there a different way to use -sep in a template?

Thanks as always for the help. It says Newbie but I have been using exiftool for 18 years now.

Phil Harvey

Remove the space after "-sep " and remove the quotes around "', '".

This is mentioned in FAQ 29.

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

loloeroket

Of course dang!

Thanks for pointing my obvious mistake! That space overlook is a killer!