Metadata Mechanic - Limit 'Set to' command to the first 6 chars of a source'Tag'

Started by moviemaker445, May 12, 2023, 08:37:08 AM

Previous topic - Next topic

moviemaker445

I want to set the 'Title' metadata tag to equal the first 6 characters of the 'Transmission Reference' Tag.

Is there a way to modify the following Metadata Mechanic entries:


XMP::dc\title\Title\0

Set to

{File.MD.XMP::photoshop\TransmissionReference\TransmissionReference\0}


so that only the first 6 characters of the 'Transmission Reference' tag are copied to the 'Title' tag.

ALSO, is it possible to copy a range of characters contained in the TransRef tag to the Title tag?

Mario

Use the substr formatting function to extract the part you want to copy.
See substr:Start,Length

Example:

{File.MD.jobid|substr:0,6}
returns the first 6 characters of the transmission reference.

Note: I used the Metadata Tag ShortCode instead of the full tag name. Much neater.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook