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.
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.
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.