samuelyeewl / zotrm

Tool to sync Zotero papers to the reMarkable tablet.
24 stars 9 forks source link

Improved File Finding Capabilities -- Script is now more robust #1

Closed narroo closed 4 years ago

narroo commented 4 years ago

The previous version of the script had issues with how the PDF's were found; the script grabbed meta data for each file entry and then manually searched the documents folder for Zotero in the hopes that the PDF's were named using the meta data in a very specific format.

I've created an alternate script which fixes this by reading the file names out of the meta data itself. Specifically; for each entry in the "paper" variable, the script iterates through the entries' children. If there's a PDF file attached to an entry, it read's the file name straight out of the attachment's meta-data. Thus, the script should work regardless of how the PDF's are named or organized in zotero....assuming the input isn't too weird.

samuelyeewl commented 4 years ago

Thanks for this update! I merged it into the main script and made some fixes for users with linked base attachment directories. Let me know if there are any problems.