Author Topic: can't use variable in IPTC Keyword field  (Read 3833 times)

Offline bazography

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
can't use variable in IPTC Keyword field
« on: October 03, 2017, 01:49:26 PM »
I often use variables like {filenamebase} when applying IPTC info. On this occasion I used {filenamebase:9} in the keyword field, which is not something I would normally do, but it was an unusual circumstance (wanting to drop the date and put the rest into the keyword field). The end result was that the keyword fields were left blank.

As a test I tried {filenamebase:9} in all the other metadata fields, and all were written to correctly except keywords.
I then tried random other types of variables such as {filenamebase:4,-1} and {filenamebase:0,5} in the keyword field and they all worked correctly.
Seems like it is specifically {filenamebase:9} (or any number, not just 9) that fails in the keyword field.
Tried multiple files and file types, results all the same.

I was able to find a workaround so it's all done now, but I thought I should mention it... obscure as it may be!

Photo Mechanic Version 5.0, build 18895 (d0ca74e)
Mac OS 10.11.6

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: can't use variable in IPTC Keyword field
« Reply #1 on: October 03, 2017, 04:15:14 PM »
I often use variables like {filenamebase} when applying IPTC info. On this occasion I used {filenamebase:9} in the keyword field, which is not something I would normally do, but it was an unusual circumstance (wanting to drop the date and put the rest into the keyword field). The end result was that the keyword fields were left blank.

As a test I tried {filenamebase:9} in all the other metadata fields, and all were written to correctly except keywords.
I then tried random other types of variables such as {filenamebase:4,-1} and {filenamebase:0,5} in the keyword field and they all worked correctly.
Seems like it is specifically {filenamebase:9} (or any number, not just 9) that fails in the keyword field.
Tried multiple files and file types, results all the same.

I was able to find a workaround so it's all done now, but I thought I should mention it... obscure as it may be!

Photo Mechanic Version 5.0, build 18895 (d0ca74e)
Mac OS 10.11.6

Thanks for the report.  I'll see if I can reproduce the problem and if I can, I'll fix the problem.

-Kirk

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: can't use variable in IPTC Keyword field
« Reply #2 on: October 03, 2017, 05:09:04 PM »
I was able to reproduce the problem and the next build will have the problem fixed.

-Kirk

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: can't use variable in IPTC Keyword field
« Reply #3 on: October 03, 2017, 05:51:32 PM »
This build fixes the problem: http://www.camerabits.com/download/PhotoMechanic5R18971.dmg

Please give it a try.

Thanks,

-Kirk

Offline bazography

  • Sr. Member
  • ****
  • Posts: 259
    • View Profile
Re: can't use variable in IPTC Keyword field
« Reply #4 on: October 03, 2017, 11:42:51 PM »
This build fixes the problem: http://www.camerabits.com/download/PhotoMechanic5R18971.dmg

Please give it a try.

Thanks,

-Kirk

Yup, that did the trick alright. Great job as always... thanks!