[MacOs] Pdf attachment within "Storage" folder
Hello everyone,
I used to keep all my Zotero PDF attachments in Google Drive using Zotfile but switched a couple of months ago to the Zotero storage to sync with their cloud service (unlimited, which I pay for).
The problem is that since then, I cannot find pdfs (which are located locally on my mac in /System/Volumes/Data/Users/myUSERNAME/Zotero/storage/PSEUDORANDOM/MYPDF.pdf) using Alfred/Raycast/Finder file search functions. However, I can find it using Spotlight.
The only workaround I found is to first open the pdf with Preview/PDF expert. Once it is done, the file can be found using previously mentioned means. The thing is, since Zotero Beta has implemented their own PDF reader and I use it instead of others; therefore I never have to open PDF in Preview/PDF expert and doing the workaround would require big changes in my workflow.
I already tested with Alfred's metadata tester and all is fine.
Any idea what's going on?
Thank you
You can also try rebuilding the Spotlight index, which would be the general advice you'd get from Apple.
If that doesn't help and you do report this to Apple, you shouldn't mention Zotero at all, since this is just about files on disk, not about Zotero.
Could well be a Spotlight/file system issue, but I thought it may be useful to post this here in case anyone has come up with a solution. Will post back if I notice that Monterey resolves the issue.
If it's only happening in Alfred, you should reach out to them for debugging.
I'd like to point out something. I realized that the attribute kMDItemLastUsedDate IS NOT SET by Zotero when this pipeline is used: Saving reference from PubMed -> Go on to download the paper in pdf -> Add attachment from stored copy of file (-> automatically renamed from Zotero metadata with Zotfile).
A quick Google search seems to relate this issue to individual apps responsible of "putting the file there" in the file system. Therefore, it would seem, it looks like a Zotero issue and the ability to set this metadata attribute should maybe be built in?
Example:
METADATA BEFORE OPENING THE FILE:
XXXX:~ XXXX$ mdls /Users/XXXX/Zotero/storage/2AWD8N3T/RedickT_2014_Acta_Psychologica.pdf
_kMDItemDisplayNameWithExtensions = "RedickT_2014_Acta_Psychologica.pdf"
kMDItemAuthors = (
"Thomas S. Redick"
)
kMDItemContentCreationDate = 2021-05-02 00:44:50 +0000
kMDItemContentCreationDate_Ranking = 2021-05-02 00:00:00 +0000
kMDItemContentModificationDate = 2021-07-10 09:00:00 +0000
kMDItemContentModificationDate_Ranking = 2021-07-10 00:00:00 +0000
kMDItemContentType = "com.adobe.pdf"
kMDItemContentTypeTree = (
"com.adobe.pdf",
"public.data",
"public.item",
"public.composite-content",
"public.content"
)
kMDItemCreator = "Elsevier"
kMDItemDateAdded = 2021-05-02 00:44:50 +0000
kMDItemDateAdded_Ranking = 2021-05-02 00:00:00 +0000
kMDItemDescription = "ACTPSY, 145 (2014) 1-9. doi:10.1016/j.actpsy.2013.10.010"
kMDItemDisplayName = "RedickT_2014_Acta_Psychologica.pdf"
kMDItemDocumentIdentifier = 0
kMDItemEncodingApplications = (
"Acrobat Distiller 10.0.0 (Windows)"
)
kMDItemFinderComment = "zotero://select/library/items/7VQLPTEG"
kMDItemFSContentChangeDate = 2021-07-10 09:00:00 +0000
kMDItemFSCreationDate = 2021-05-02 00:44:50 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "RedickT_2014_Acta_Psychologica.pdf"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 438698
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2021-07-13 00:00:00 +0000
kMDItemKeywords = (
"Cognitive control; Working memory; Individual differences"
)
kMDItemKind = "Document PDF"
kMDItemLogicalSize = 438698
kMDItemNumberOfPages = 9
kMDItemPageHeight = 793.701
kMDItemPageWidth = 595.2760009765625
kMDItemPhysicalSize = 442368
kMDItemSecurityMethod = "None"
kMDItemTitle = "Cognitive control in context: Working memory capacity and proactive control"
kMDItemVersion = "1.7"
METADATA AFTER OPENING IN PDF EXPERT (therefore subsequently allowing to find in Alfred):
XXXX:~ XXXX$ mdls /Users/XXXX/Zotero/storage/2AWD8N3T/RedickT_2014_Acta_Psychologica.pdf
_kMDItemDisplayNameWithExtensions = "RedickT_2014_Acta_Psychologica.pdf"
kMDItemAuthors = (
"Thomas S. Redick"
)
kMDItemContentCreationDate = 2021-05-02 00:44:50 +0000
kMDItemContentCreationDate_Ranking = 2021-05-02 00:00:00 +0000
kMDItemContentModificationDate = 2021-07-10 09:00:00 +0000
kMDItemContentModificationDate_Ranking = 2021-07-10 00:00:00 +0000
kMDItemContentType = "com.adobe.pdf"
kMDItemContentTypeTree = (
"com.adobe.pdf",
"public.data",
"public.item",
"public.composite-content",
"public.content"
)
kMDItemCreator = "Elsevier"
kMDItemDateAdded = 2021-05-02 00:44:50 +0000
kMDItemDateAdded_Ranking = 2021-05-02 00:00:00 +0000
kMDItemDescription = "ACTPSY, 145 (2014) 1-9. doi:10.1016/j.actpsy.2013.10.010"
kMDItemDisplayName = "RedickT_2014_Acta_Psychologica.pdf"
kMDItemDocumentIdentifier = 0
kMDItemEncodingApplications = (
"Acrobat Distiller 10.0.0 (Windows)"
)
kMDItemFinderComment = "zotero://select/library/items/7VQLPTEG"
kMDItemFSContentChangeDate = 2021-07-10 09:00:00 +0000
kMDItemFSCreationDate = 2021-05-02 00:44:50 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "RedickT_2014_Acta_Psychologica.pdf"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 438698
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2021-07-13 00:00:00 +0000
kMDItemKeywords = (
"Cognitive control; Working memory; Individual differences"
)
kMDItemKind = "Document PDF"
kMDItemLastUsedDate = 2021-07-13 14:19:49 +0000
kMDItemLastUsedDate_Ranking = 2021-07-13 00:00:00 +0000
kMDItemLogicalSize = 438698
kMDItemNumberOfPages = 9
kMDItemPageHeight = 793.701
kMDItemPageWidth = 595.2760009765625
kMDItemPhysicalSize = 442368
kMDItemSecurityMethod = "None"
kMDItemTitle = "Cognitive control in context: Working memory capacity and proactive control"
kMDItemUseCount = 3
kMDItemUsedDates = (
"2021-07-13 04:00:00 +0000"
)
kMDItemVersion = "1.7"
Again, this isn't our bug, and if you want it fixed, you should go talk to the Alfred developers or Apple and ask them to support finding files that haven't yet been opened.
To make things clear, Alfred developers also say this is not their bug.
All I want is to be able to use the full text sync feature and be able to reach PDFs with Alfred.
I have no idea how Alfred search works, but we obviously have no control over it. If they use their own search index, only they can help you. If they use Spotlight under the hood, then it's an Apple bug, as explained above, and you or they would need to contact Apple. I gave you a slew of examples in which apps, including Apple's own apps, don't set this attribute, and I linked to documentation from Apple explaining that it's the system's job to manage it as files are opened. I honestly have no idea what more you want from us, but we can't help you further, and you'll need to talk to the people responsible for the bug.