transferring library and PDFs to a new computer (Mac), PDFs won't load
Hi,
I recently bought a new MacBookAir (Monterey, 2017) and now I can't open PDFs when double-clicking the entry in my library. When I do, the loading screen of the Zotero PDF-reader appears, but the PDF won't load (no error message). I can open the PDF with other PDF viewers when I click 'show File'. Moreover, when I remove the PDF and add it to the entry in my library again, the PDF viewer functions normally.
Is there any way to fix this? Maybe there is a way to automatically create copies of all PDFs while at the same time removing the dysfunctional ones?
Any help would be greatly appreciated!
Thanks
PS: First post, so apologies in case I didn't make myself clear enough.
I recently bought a new MacBookAir (Monterey, 2017) and now I can't open PDFs when double-clicking the entry in my library. When I do, the loading screen of the Zotero PDF-reader appears, but the PDF won't load (no error message). I can open the PDF with other PDF viewers when I click 'show File'. Moreover, when I remove the PDF and add it to the entry in my library again, the PDF viewer functions normally.
Is there any way to fix this? Maybe there is a way to automatically create copies of all PDFs while at the same time removing the dysfunctional ones?
Any help would be greatly appreciated!
Thanks
PS: First post, so apologies in case I didn't make myself clear enough.
How did you transfer your library? Migration Assistant or something else? I'd guess that there's just a permissions problem with the transferred files, which would be easy to fix.
The Debug ID I got is: D1903729186
Thanks for your quick reply!
I'm assuming you don't have any sort of third-party security software on this computer that might be interfering? This isn't a problem in Zotero itself.
I doublechecked and my user account had full read/write privileges all along. The PDF still won't open in the reader unfortunately.
Anything else I could do?
ls -la
(with a space at the end), drag in the parent folder of that PDF so that it adds the path, and then press Return, what's the output? (You can email to support@zotero.org with a link to this thread if you don't want to share publicly, but we'll respond here.)87-77-216-90:~ myname$ ls -la /Users/myname/Desktop/Books\ Papers\ etc./_Zotero\ Attachments/Arendt/1958/The\ Origins\ of\ Totalitarianism\,\ 2nd\ enlarged\ edition
total 60648
drwx------@ 3 myname staff 96 Nov 24 2021 .
drwx------ 6 myname staff 192 Jan 26 2022 ..
-rw-r--r--@ 1 myname staff 31050755 Mar 15 2022 Arendt_1958_The Origins of Totalitarianism, 2nd enlarged edition.pdf
87-77-216-90:~ myname$
drwx------@ 3 […] staff 96 Nov 24 2021 .
drwx------ 6 […] staff 192 Jan 26 2022 ..
-rw-r--r--@ 1 […] staff 31050755 Mar 15 2022 A[…].pdf
Yeah, so there are some extended attributes on the file.
In Terminal, enter
xattr
(with a space) and drag the folder and the file to the window, and then let us know the output.(This isn't related to Zotero in any way. We might be able to quickly tell you what to do, but really this would be for Apple or a general Mac troubleshooting forum to help with.)
87-77-216-90:~ myname$ xattr /Users/myname/Desktop/Books\ Papers\ etc./_Zotero\ Attachments/Arendt/1958/The\ Origins\ of\ Totalitarianism\,\ 2nd\ enlarged\ edition /Users/myname/Desktop/Books\ Papers\ etc./_Zotero\ Attachments/Arendt/1958/The\ Origins\ of\ Totalitarianism\,\ 2nd\ enlarged\ edition/Arendt_1958_The\ Origins\ of\ Totalitarianism\,\ 2nd\ enlarged\ edition.pdf
/Users/myname/Desktop/Books Papers etc./_Zotero Attachments/Arendt/1958/The Origins of Totalitarianism, 2nd enlarged edition: com.apple.macl
/Users/myname/Desktop/Books Papers etc./_Zotero Attachments/Arendt/1958/The Origins of Totalitarianism, 2nd enlarged edition/Arendt_1958_The Origins of Totalitarianism, 2nd enlarged edition.pdf: com.apple.lastuseddate#PS
com.apple.macl
is a macOS security-related flag.Try
xattr -rd com.apple.macl
(with a space), drag the top-level Books folder, and press Return. Hopefully that will remove that flag from all folders and files under that folder.Any help is very much appreciated (and thanks for helping me thus far!)
com.apple.macl
for the parent folder?__
87-77-216-90:~ myname$ xattr /Users/martinrenz/Desktop/Books\ Papers\ etc./_Zotero\ Attachments/Arendt/1958/The\ Origins\ of\ Totalitarianism\,\ 2nd\ enlarged\ edition /Users/myname/Desktop/Books\ Papers\ etc./_Zotero\ Attachments/Arendt/1958/The\ Origins\ of\ Totalitarianism\,\ 2nd\ enlarged\ edition/Arendt_1958_The\ Origins\ of\ Totalitarianism\,\ 2nd\ enlarged\ edition.pdf
/Users/myname/Desktop/Books Papers etc./_Zotero Attachments/Arendt/1958/The Origins of Totalitarianism, 2nd enlarged edition/Arendt_1958_The Origins of Totalitarianism, 2nd enlarged edition.pdf: com.apple.lastuseddate#PS
__
So actually you're right and I don't see it for the folder anymore (?)
I can drag the PDF into chrome and it reads it instantly.
Also, are you saying you can add the same file from the same location as a linked file and it then works? If so, presumably the original attachment (pointing to the same location) also starts to work?
However, if I replace the original attachment, it works, i.e. if I remove the PDF from the folder and then re-insert it by dragging onto the library entry in Zotero.
This is why I originally thought there might be some way to automatically replace all attachments by a copy or similar. But I would also be happy with a simpler way that removes the mac OS security-related flag of course!