Renaming files based on Zotero collection structure (Zotero 7 post-Zotfile)
Hi all, I have done a bit of searching and playing around with attanger + Zotmoov but have not yet figured out how to replicate a feature of Zotfile that really helped with my overall workflow: the ability to rename files added to a Zotero item based on its containing collections + subcollections. For example, if an article used to sit in the "Dissertation Chapter 1" folder of "000 Inbox," I used to be able to automatically rename it to:
2017 - Author - Title of the article - 000 InboxDissertation Chapter 1.md
Do any of these Zotfile replacements do such a thing? Or is there any way to replicate this functionality in Zotero 7? I know that the file name itself is pretty ungainly, but I was able to use those keywords to do some really nice categorization in DevonThink...
Will be grateful for any help here!
2017 - Author - Title of the article - 000 InboxDissertation Chapter 1.md
Do any of these Zotfile replacements do such a thing? Or is there any way to replicate this functionality in Zotero 7? I know that the file name itself is pretty ungainly, but I was able to use those keywords to do some really nice categorization in DevonThink...
Will be grateful for any help here!
https://www.zotero.org/support/collections_and_tags
I suppose it would be possible to do what you want nonetheless, but I think the the filenames would become very complex very quickly...
There are several posts about DevonThink on this forum, perhaps one of them provides a better approach to access Zotero metadata from DevonThink?
Do you have a suggestion about how it would be possible to re-name a file based on containing collections?
I'll update the post to reflect that the correct terminology is 'collections' not 'directory'.
For now, I don't think DevonThink needs to access any metadata about my items, it just indexes the files, so I am trying to solve this on the Zotero side first.
From your post I was prepared to assume that using "collection name" was one of those ... but I can't see any indication in the the Zotfile documentation (linked below) that it actually supported "collection name" as part of file names. It *did* support that for naming the *folder* into which it placed the linked PDF file. What was the file renaming format string that you used in Zotfile ?
https://zotfile.com/index.html#renaming-rules
Zotmoov and Attanger do support the folder naming feature from Zotfile.
Does that clear things up a bit? I think it is fair to say that the %c wildcard dealt with collections within Zotero, not folder paths on the hard drive, as the example I gave above does demonstrate.
As far as I can tell, Attanger's file naming conventions follow the guidelines at https://www.zotero.org/support/file_renaming, which does not allow for collections.
I'm not quite sure what you mean about the "folder naming feature," sorry!
Zotmoov does the same thing as Zotfile did (that is, the folder name, not the filename).
https://github.com/wileyyugioh/zotmoov/blob/master/docs/SETTINGS_INFO.md#automatically-movecopy-files-to-subdirectory
Attanger does the same thing as Zotfile did ... "Subfolder:" in its Setings.
I guess it's kind of a moot point anyway. I see what you mean about the folder renaming, though I am not sure that will really work so well for me.
Maybe I'm out of luck for the moment.