file renaming syntax CAPS?

edited 10 days ago
I'm trying to define a file renaming protocol for Zotero that duplicates the system I've used for years. This includes switching between capitalized and uncapitalized letters, with all caps "AUTHORNAME" and only first letter capped "Item title". There are many other aspects to the protocol as well, but I think I understand how to configure most of those from the examples provided here:
https://www.zotero.org/support/file_renaming.
I don't, however, see how to make the authorname all caps, or to alternate between all caps and lowercase. Typical file names using my existing system is as follows:
SMITH and JOHNSON eds - 2025 - Whats up with that- discursive analyses of metamediation in Saturday Night Live- 1975-2025
or, with 3+ editors/authors:
SMITH et al eds - 2025 - Whats up with that- discursive analyses of metamediation in Saturday Night Live- 1975-2025
I assume there's no way to do caps on proper nouns automatically, so perhaps Zotero's default of capping most title letters is fine, but I'm hoping I can make the rest work. (Primarily a matter of recognizing and ALL CAPPING editor/author, spacing, and eliminating characters other than dashes.)
Can anyone share suggestions for the capitalization issue in the authors/editors field?
Thanks!
-Josh
  • Unfortunately, I don't think it's possible with the current system. That's because case is applied last when processing a variable in the template, so the closest match you can achieve with the current system would produce "SMITH AND JOHNSON".

    This is done by using the case parameter. Here is an example template:

    {{ firstCreator case="upper" suffix=" - " }}
    {{ year suffix=" - " }}
    {{ title }}

  • Thanks tnajdek! That certainly gets me closer, and perhaps that's as close as I'll be able to come with the current setup. I imagine it will then be a matter of organizing if statements to differentiate authors from editors and append appropriate designations.
Sign In or Register to comment.