How to get Zotero PDFs indexed to specific folders in a post-Zotfile world?

I’m writing with a somewhat specific case of getting my PDFs indexed in DT that live in Zotero, which has been made complicated by the fact that Zotfile no longer works in Zotero 7. My Zotero /storage folder is indexed in DT, so all of my PDFs get added to DT.

Zotfile used to let me rename a PDF 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.pdf

I could then set up a filter in DT to catch files with “InboxDissertation Chapter 1” and have them replicated to a “Chapter 1” folder. However, with the demise of Zotfile, I am no longer able to rename my files in this way.

Has anyone else figured out how to play around with Zotero file management so that I can catch the Zotero collection name in DT?

I hope this is clear enough. I posted about this on the Zotero forum last year but no one had any good ideas so I’m trying here again, because I recently came across some stuff that I had collected in DT in this way years ago and it is really, really helpful to my research flow!

Hmm. I don’t have a perfect solution, but a few thoughts (and I’ve never been a zotfile user or a collection user in Zotero). 1) If your existing chapters already have that folder structure, it’s trivial to drag the already-indexed files into groups (so, a “Chapter 1” Group). 2) Develop a new solution going forward. You might add tags in Zotero as you add new articles to Zotero, and then filtering or searching on those tags. DEVONthink doesn’t know about them, but something like the Alfred workflow GitHub - giovannicoppola/zothero: Rapidly search and cite Zotero entries from Alfred · GitHub does, in fact, include results based on tags as part of its search of Zotero libraries (though not the tags themselves).

If there’s not a huge backlog of unclassified files, keeping up with article Zotero ingest/DT organization isn’t too awful. Zotero has never worked with AppleScript, so there have been quite a few workarounds over the years. BetterBibTex might also offer a better handle on things, and DT works well with BBT.

Thanks for these suggestions! I know myself, and I know that I will not take the time to manually drag the newly-indexed files into DT! That’s why I’m willing to put in the effort to automate this process. By the same token, I don’t want to tag stuff in Zotero either, if I can help it–that is another step that I’ll probably forget or skip because I am usually adding things on the fly. All the same, I accept that I may just have to make this a more manual part of my workflow going forward…

I already use BetterBibTex, so I’m curious to poke around that a bit more. Are you thinking about this integration? If you have any other suggestions in that vein, I’d be all ears.

Ha. That’s fair. Any system that doesn’t work for you isn’t a system. Maybe smart groups in DT to identify “recently added files that do -not- have a tag”? Frankly, you might be into Hazel territory to replicate some of what zotfile did.

Although I’m a meticulous file organizer for almost everything, I’ve never tried to organize my research articles at the directory level, rather than using other abstraction layers (DT, Zotero, tags, Hookmark) to separate the constant stream of “oooh, that looks interesting/important/essential/irrelevant but shiny” downloads that constitute my research.

Ah, I appreciate these suggestions. Not sure if this was clear enough, but I am trying to parse the Zotero collection folder structure, not an actual folder structure on the hard disk! I am a folder person, not a tag person, so I don’t bother with tags in either Zotero or DT which I realize may make the whole thing hard to pull off. Zotfile used to let you include the Zotero collection path as part of the filename which was great but that no longer seems to exist as a possibility in Zotero 7 on.

Anyway thanks for humoring me!