[UR] Using metadata mechanic to replace title with filename, what am I doing wrong?

Started by Aubrey, April 09, 2022, 01:01:26 PM

Previous topic - Next topic

Aubrey

I'm unsuccessful using metadata mechanic to replace the title of a pdf with the filename.


I've gone into the metadata tab and extracted the filename variable: {File.MD.photools.com::IMatch\101100\file.name\0}
and the title variable: {File.MD.XMP::dc\title\Title\0}

Then highlighted a file:
Opened metadatamechanic and placed title variable in first row, selected "Set to" and placed filename variable in row below "Set to"

Use RAW value unticked, no filter.

Hit start and review change in highlighted file... there was no change.

I can manually change the field title in the metadata.

Suggestions?

Thank you,
Aubrey.

Update:
Just tried converting author to upper case: does not appear to work.
Opened MetadataMechanic in browser and looked at console. Simply trying to change to upper case GET gives issues:
jquery.min.js:2         
GET http://127.0.0.1:43333/v1/files?idlist=%40imatch.filewindow.active.selection&fields=id&tagtarget=%7BFile.MD.XMP%3A%3Adc%5Ccreator%5CCreator%5C0%7D&varvalue=%7BFile.MD.XMP%3A%3Adc%5Ccreator%5CCreator%5C0%7D&escapevariables=false&auth_token=21460996ace539ba8d98db05b04c98e2b87a0fc37abf7cce7fde289defe3b7de 400 (Bad Request)

Mario

Made a quick check. This works here (3 files selected, all files get their title from the file name, whether or not the title had some text before):



I tried images and PDF files.
Anything you do differently?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Aubrey

I had been using the following in the first line: {File.MD.XMP::dc\title\Title\0}
Rebooted PC and also changed first line to: XMP::dc\title\Title\0 (as you showed)

Now working.

Thank you,
Aubrey.


Mario

You cannot configure the target to be a variable, which you did by using {File.MD...}
Variables can only be the source.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook