Removing title commas and stars when renaming using Zotfile
I have a paper that contains commas and asterisks in its title (do not blame me), unfortunately it was not published yet, therefore I can't send the DOI or the file before the final publication.
The title is something like: A foobar for something, else, and there again*
The problem is when zotero automatically renames the filename contains commas (weird) and an asterisk (dangerous). My renaming rule transforms the pdf filename to:
author1_et_al_2020_a_foobar_for_something,_else,_and_there_again*.pdf
I have toggled the following parameters in Zotfile rename (ZotFile Preferences->Renaming Rules):
Format for all item types except patents
{%a_}{%y_}{%t}
Format for patents
{%a_}{%y_}{%t}
Additional Settings
Delimiter between multiple authors _
NO Add user input to filename
YES Change to lower case
YES Replace blanks
YES Truncate file after . : ?
YES Max length of title: 80
YES Max number of authors: 2
Number of autors to display when authors are ommited 1
YES Add suffix when authors are ommited: et al
Any hints in how to replace those commas and asterisks in filename for underlines (_) or remove them at all?
The title is something like: A foobar for something, else, and there again*
The problem is when zotero automatically renames the filename contains commas (weird) and an asterisk (dangerous). My renaming rule transforms the pdf filename to:
author1_et_al_2020_a_foobar_for_something,_else,_and_there_again*.pdf
I have toggled the following parameters in Zotfile rename (ZotFile Preferences->Renaming Rules):
Format for all item types except patents
{%a_}{%y_}{%t}
Format for patents
{%a_}{%y_}{%t}
Additional Settings
Delimiter between multiple authors _
NO Add user input to filename
YES Change to lower case
YES Replace blanks
YES Truncate file after . : ?
YES Max length of title: 80
YES Max number of authors: 2
Number of autors to display when authors are ommited 1
YES Add suffix when authors are ommited: et al
Any hints in how to replace those commas and asterisks in filename for underlines (_) or remove them at all?
-
bwiernikYou would need to write your own wildcards to strip those characters from the title field. http://zotfile.com/#user-defined-wildcards
-
foldes.andreihm, can anyone advise on how to modify ZotFile to not include commas in the filenames?