Author Topic: UC not working with MacOS  (Read 497 times)

Offline kmarquis87

  • Newcomer
  • *
  • Posts: 3
    • View Profile
UC not working with MacOS
« on: March 05, 2026, 02:44:25 AM »
Photo Mechanic version 2026.2, build 9034 (cae4923)

MacOS Sonoma Version 14.6.1 (23G93)

I am trying to add some flags to upper case some words however it doesnt work i add 0:UC flags to the word. However is working as expected when its added to monthname

Im using code replacements and the code replacements are working as expected however when adding the flags it doesnt work. Is this a common issue? or am i missing something. I have included the template text below with the output i get and i had attached screenshots of the template, output and what the code replacement

Template string:
Code: [Select]
{CITY:0:UC}, {STATE:0:UC} {monthname:0:UC} {day0} - during the Sky Bet Championship game between Ipswich Town and Hull City at Portman Road on {monthname} {day0}, {year4} in Ipswich, England. {STATE} {CITY}
Output:
Code: [Select]
\CITY\, \STATE\ MARCH 02 - during the Sky Bet Championship game between Ipswich Town and Hull City at Portman Road on March 02, 2026 in Ipswich, England. England Ipswich
Does anyone have anything knowledge if im doing something wrong or if this is a bug? A colleague using a PC has used the same template string and doesnt have an issue

Cheers

Keeran

Offline alexmacnaughton

  • Newcomer
  • *
  • Posts: 44
    • View Profile
Re: UC not working with MacOS
« Reply #1 on: March 05, 2026, 11:06:47 AM »
Hi, I believe your issue is that you're using Hot Codes to add the city, and the command to make the city uppercase in the caption field won't work with a Hot Code. If you add 'Hull' manually to the city field, the uppercase command should work.

Offline kmarquis87

  • Newcomer
  • *
  • Posts: 3
    • View Profile
Re: UC not working with MacOS
« Reply #2 on: March 06, 2026, 03:12:10 AM »
as mentioned this works for a colleague using the windows version of the PM and code replacement work fine in other places in the description so this seems to be a bug

See the attached from a windows version with the code and the version they are using

Offline ahoward

  • Camera Bits Staff
  • Uber Member
  • *****
  • Posts: 1297
    • View Profile
Re: UC not working with MacOS
« Reply #3 on: March 06, 2026, 12:40:56 PM »
I can reproduce the issue on the Mac, but I can also reproduce it on Windows, so I don't understand why your colleague is not having the same issue that you are. I can also reproduce the issue in Photo Mechanic 6. So this doesn't appear to be a new issue. The one thing I do not understand is how your colleague is able to get a screenshot of the Metadata Template with the code replacements un-evaluated. One difference between Mac and Windows here is that on Windows, if there is a valid code replacement in one of the fields when the Metadata Template or Info Windows are opened (or when a Snapshot is loaded), it gets evaluated immediately. If there is not a valid code in one of the fields, the code and delimiters just stay there as entered.

So for this to be working for your colleague, they would need to: type in a code (or load a snapshot with the code) that has no valid replacement in a code replacement file, and then later add the code replacement file in "Set Code Replacements", then go back and open the Metadata Template (at which point the valid code replacements would get evaluated) and then apply that to their images. On the other hand, if you were to follow these steps on Mac you'd get the results you've shown, since the code replacements don't get evaluated until they are applied.

We'll look into how to fix this, but at the moment it seems like the best workflow for you would be to create a snapshot with location information, apply that, and then another snapshot that uses the variables for the location information (like in our caption) and then apply that seperately.

Offline kmarquis87

  • Newcomer
  • *
  • Posts: 3
    • View Profile
Re: UC not working with MacOS
« Reply #4 on: March 07, 2026, 12:36:50 AM »
thank you for your reply and confirming i wasnt doing anything silly! I spoke with my colleague and he hasnt done anything outside of what i have shown so im not sure how or why it works for him.

For now ive duplicated the information ive needed to be in upper case in my code replacement file as upper case but it will be great to see this bug fixed ill keep an eye on this thread and any update patches to see when this has been resolved