Export pdf attachments of the collection in bulk
I often need to export the pdf files of some collections of my library. But I don't find any ways to do this in bulk. I usually just drag them one by one into the folder. But I think it is a waste of time. Is there something I missing? My OS is Win7 and I update the standalone version to the latest 4.0.26.2.
On OS X, you can just search for 'pdf' or create a saved search that matches just PDFs, do a Select All to select the search matches, and drag those files to a folder.
The technical limitation on Windows may no longer be relevant, though. We'll have to take another look, though I won't get to it in the near future.
* doesn't work on group libraries (because it aims to provide a sync rather than an export)
* it doesn't allow the export of files in sub-collections (you can export all files; files from a search; or files from a specific collection, but not, afaics, all files in a collection or library, including all sub-collections, and duplicated if in several collections)
An export that allows me to say: export all attachments in these Zotero collections (including sub-collections) as folders on the file system, and ensure that each appearance of an entry in a collection results in a pdf in a such-named folder---would be great.
I think there are many situtations in which this is useful, most particularly when sharing with others who don't use Zotero.
I use your described ZotFile approach to export multiple pdf's to my desktop to easily pass them on to others. This works really well, however, just one time with each individual pdf.
If I already exported a particular pdf that way in the past, and then I want to export it again to my desktop, I get following message:
"1 of the selected attachments are already on the tablet. Do you want to replace these files on the tablet?"
I get this message even if the file from the previous export has already been deleted from my desktop. If I then chose "ok", I get this error message:
TypeError: tablet_file.exists is not a function
(chrome://zotfile/content/zotfile.js, 2790)
and then nothing happens.
Is there something that I am missing? thanks in advance!
I read all of your discussions, it seems that there is no way to reach my purpose. The search method works for export all pdf attachments in zotero library. However, how to pick up pdfs belonging to a specific collection on Windows OS? Could someone make it more clear?
If the search bar alone isn't enough, things are a little more complicated, because of the way child items in collections are currently handled. Child items technically aren't considered to belong to collections, so it's not enough to choose [Collection] [is] [Foo] as a search condition. But you can do this:
1) Create search A with [Collection] [is] [Foo] and "Include parent and child items of matching items" selected. Save that as a saved search.
2) Create search B with [Collection] [is] [Search A], [Attachment File Type] [is] [PDF], and any other conditions you want. Save that as a second saved search.
3) Use Select All in saved search B, and then drag the PDFs to the filesystem.
We should be able to change this in the future to avoid the need for the extra search.
Following the instructions above, I selected my items (at the parent level) and drag/dropped to my windows desktop and nothing. But when I expanded all of the parents and selected each pdf file, it worked as described.
I just discovered this post today and really like that capability, I was not aware of it before. I think it will improve much of my workflow and makes sharing content a lot easier.
Thank you.
We'd also have to confirm that it's possible on a technical level. I think it is, but file dragging works a bit differently on each OS, particularly when multiple files are involved.
Why not get rid of these greyed out entries altogether? There could be a new drop-down menu with checkboxes next to the search bar which contains thing like "pdf", "notes", "citations", etc. Some people (not me) like to use the notes feature extensively. When they go over their collected notes, it could be very useful not to have the citation entries, pdfs, and other attachments clutter the view.