Write to 'Rights Usage Terms' field

Started by sridhar, January 18, 2012, 07:11:39 PM

Previous topic - Next topic

sridhar

Hi,

I have a requirement to be able to write values to 'Rights Usage Terms' field programmatically.
(Please note that it is the last field in IPTC tab in photoshop. File -> 'File Info' option)

exiftool.exe -XMP:"Usage Terms"="Sample"  users\<FileName>.jpg
    1 image files updated

Though it says image file updated, when I opened the newly created file in Photoshop, it still shows the old value.
Is there a way to successfully update? Am I missing something here..much appreciate any inputs.

Thanks,
Sridhar

Phil Harvey

Hi Sridhar,

It is interesting that your command even works.  It is writing the "Usage" tag.  I should look into this. 

There are no spaces in tag names.  Try -xmp:usageterms="Sample"

- Phil

Edit: I understand why this is happening, but there isn't any simply way to change this to issue a warning for an invalid name.  BTW, your problem is FAQ number 2.
...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 ($).

sridhar

Thank you Phil, first for this excellent tool and then for patiently responding to the question.
As suggested, the tagname without space worked like charm. It resolved my issue.

Thanks again,
Sridhar

Monte


Phil Harvey

@Monte: Don't take it personally, but I will delete useless posts like this one from new members to stay one step ahead of potential sleeper spam.  Especially since this was made on a 6-year-old topic.

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

Monte

Got it, thanks.  I see now it does look suspicious, responding with no substance to a 6-year-old topic.  The issue was a brand-new topic at work for me yesterday, and the solution posted here, old as it was, was exactly what I needed. 

Phil Harvey

It seems as if you are a real person. :)

Welcome to the forum!

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