chrisgrieser / alfred-bibtex-citation-picker

Citation picker & lightweight reference manager for BibTeX files, via Alfred.
MIT License
137 stars 8 forks source link

[Bug]: Cannot select the file to open when there are multiple attachments #45

Closed AntoineChn closed 4 months ago

AntoineChn commented 4 months ago

Bug Description

When one Zotero item has multiple attached PDF files, the alfred-bibtex-citation-picker (v11.14.0) does not let me select the file to open and crashes when I try ctrl+alt+cmd+return

Relevant Screenshot

alfred-bibtex-citation-picker

To Reproduce

  1. create a new item in Zotero, i.e. sy19
  2. attach two PDFs to this item
  3. try to open attachment(s) of sy19 with alfred-bibtex-citation-picker

Debugging Log

[20:13:47.372] Supercharged Citation Picker[Script Filter] Processing complete
[20:13:47.473] Supercharged Citation Picker[Script Filter] Passing output '/Users/wgao/Zotero/storage/4KUUBGNK/sy19_a22_cours11.pdf;/Users/wgao/Zotero/storage/8IGSS6JV/sy19_a22_cours7.pdf;/Users/wgao/Zotero/storage/EB64PFIH/sy19_a22_cours3.pdf;/Users/wgao/Zotero/storage/F4PICX4G/sy19_a22_cours6.pdf;/Users/wgao/Zotero/storage/GQ8QYSDU/sy19_a22_cours2.pdf;/Users/wgao/Zotero/storage/HJHH2XHT/sy19_a22_cours8-9.pdf;/Users/wgao/Zotero/storage/IY2NZQXP/sy19_a22_cours1.pdf;/Users/wgao/Zotero/storage/S5I34SW5/sy19_a22_cours10.pdf;/Users/wgao/Zotero/storage/WXR7BKNL/sy19_a22_cours4-5.pdf' to Run Script
[20:13:47.477] Supercharged Citation Picker[Run Script] Processing complete
[20:13:47.477] Supercharged Citation Picker[Run Script] Passing output '⚠️ No file file found at"/Users/wgao/Zotero/storage/4KUUBGNK/sy19_a22_cours11.pdf;/Users/wgao/Zotero/storage/8IGSS6JV/sy19_a22_cours7.pdf;/Users/wgao/Zotero/storage/EB64PFIH/sy19_a22_cours3.pdf;/Users/wgao/Zotero/storage/F4PICX4G/sy19_a22_cours6.pdf;/Users/wgao/Zotero/storage/GQ8QYSDU/sy19_a22_cours2.pdf;/Users/wgao/Zotero/storage/HJHH2XHT/sy19_a22_cours8-9.pdf;/Users/wgao/Zotero/storage/IY2NZQXP/sy19_a22_cours1.pdf;/Users/wgao/Zotero/storage/S5I34SW5/sy19_a22_cours10.pdf;/Users/wgao/Zotero/storage/WXR7BKNL/sy19_a22_cours4-5.pdf".
' to Post Notification
[20:13:47.478] Supercharged Citation Picker[Post Notification] Processing complete
[20:13:47.478] Supercharged Citation Picker[Post Notification] Passing output '⚠️ No file file found at"/Users/wgao/Zotero/storage/4KUUBGNK/sy19_a22_cours11.pdf;/Users/wgao/Zotero/storage/8IGSS6JV/sy19_a22_cours7.pdf;/Users/wgao/Zotero/storage/EB64PFIH/sy19_a22_cours3.pdf;/Users/wgao/Zotero/storage/F4PICX4G/sy19_a22_cours6.pdf;/Users/wgao/Zotero/storage/GQ8QYSDU/sy19_a22_cours2.pdf;/Users/wgao/Zotero/storage/HJHH2XHT/sy19_a22_cours8-9.pdf;/Users/wgao/Zotero/storage/IY2NZQXP/sy19_a22_cours1.pdf;/Users/wgao/Zotero/storage/S5I34SW5/sy19_a22_cours10.pdf;/Users/wgao/Zotero/storage/WXR7BKNL/sy19_a22_cours4-5.pdf".
' to Play Sound

Sample BibTeX Entries

@article{terraccianoPorousSiliconbasedAptasensors2019,
  ids = {terracciano2019porousa,terracciano2019porousb,terracciano2019porousc},
  title = {Porous Silicon-Based Aptasensors: {{The}} next Generation of Label-Free Devices for Health Monitoring},
  author = {Terracciano, M. and Rea, I. and Borbone, N. and Moretta, R. and Oliviero, G. and Piccialli, G. and De Stefano, L.},
  year = {2019},
  journal = {Molecules},
  volume = {24},
  number = {12},
  doi = {10/ggjtx3},
  abstract = {Aptamers are artificial nucleic acid ligands identified and obtained from combinatorial libraries of synthetic nucleic acids through the in vitro process SELEX (systematic evolution of ligands by exponential enrichment). Aptamers are able to bind an ample range of non-nucleic acid targets with great specificity and affinity. Devices based on aptamers as bio-recognition elements open up a new generation of biosensors called aptasensors. This review focuses on some recent achievements in the design of advanced label-free optical aptasensors using porous silicon (PSi) as a transducer surface for the detection of pathogenic microorganisms and diagnostic molecules with high sensitivity, reliability and low limit of detection (LoD). {\copyright} 2019 by the authors},
  keywords = {Aptamer,Aptasensor,Optical label free-sensing,Porous silicon,Surface modification}
}

@article{thakurRecentAdvancesNanotheranostics2019,
  ids = {thakur2019recenta,thakur2019recentb,thakur2019recentc,thakur2019recentd},
  title = {Recent Advances in Nanotheranostics for Triple Negative Breast Cancer Treatment},
  author = {Thakur, V. and Kutty, R.V.},
  year = {2019},
  journal = {Journal of Experimental and Clinical Cancer Research},
  volume = {38},
  number = {1},
  doi = {10/ggjtxh},
  abstract = {Triple-negative breast cancer (TNBC) is the most complex and aggressive type of breast cancer encountered world widely in women. Absence of hormonal receptors on breast cancer cells necessitates the chemotherapy as the only treatment regime. High propensity to metastasize and relapse in addition to poor prognosis and survival motivated the oncologist, nano-medical scientist to develop novel and efficient nanotherapies to solve such a big TNBC challenge. Recently, the focus for enhanced availability, targeted cellular uptake with minimal toxicity is achieved by nano-carriers. These smart nano-carriers carrying all the necessary arsenals (drugs, tracking probe, and ligand) designed in such a way that specifically targets the TNBC cells at site. Articulating the targeted delivery system with multifunctional molecules for high specificity, tracking, diagnosis, and treatment emerged as theranostic approach. In this review, in addition to classical treatment modalities, recent advances in nanotheranostics for early and effective diagnostic and treatment is discussed. This review highlighted the recently FDA approved immunotherapy and all the ongoing clinical trials for TNBC, in addition to nanoparticle assisted immunotherapy. Futuristic but realistic advancements in artificial intelligence (AI) and machine learning not only improve early diagnosis but also assist clinicians for their workup in TNBC. The novel concept of Nanoparticles induced endothelial leakiness (NanoEL) as a way of tumor invasion is also discussed in addition to classical EPR effect. This review intends to provide basic insight and understanding of the novel nano-therapeutic modalities in TNBC diagnosis and treatment and to sensitize the readers for continue designing the novel nanomedicine. This is the first time that designing nanoparticles with stoichiometric definable number of antibodies per nanoparticle now represents the next level of precision by design in nanomedicine. {\copyright} 2019 The Author(s).},
  keywords = {Breast Cancer,Immunotherapy,NanoEL,Nanomedicine,Nanotechnology,Theranostics}
}

@misc{thierrydenoeuxSY19ApprentissageAutomatique2022,
  title = {{{SY19}} : {{Apprentissage}} Automatique},
  author = {{Thierry Den{\oe}ux}},
  year = {2022},
  publisher = {University of Technology of Compiegne},
  abstract = {Pr{\'e}sentation des bases de l'apprentissage automatique (Machine Learning en anglais), domaine {\`a} l'interface de l'intelligence artificielle et de la statistique, visant {\`a} extraire automatiquement des connaissances {\`a} partir de donn{\'e}es. Application pratique des techniques vues en cours {\`a} l'aide du logiciel R.},
  langid = {english},
  file = {/Users/wgao/Zotero/storage/4KUUBGNK/sy19_a22_cours11.pdf;/Users/wgao/Zotero/storage/8IGSS6JV/sy19_a22_cours7.pdf;/Users/wgao/Zotero/storage/EB64PFIH/sy19_a22_cours3.pdf;/Users/wgao/Zotero/storage/F4PICX4G/sy19_a22_cours6.pdf;/Users/wgao/Zotero/storage/GQ8QYSDU/sy19_a22_cours2.pdf;/Users/wgao/Zotero/storage/HJHH2XHT/sy19_a22_cours8-9.pdf;/Users/wgao/Zotero/storage/IY2NZQXP/sy19_a22_cours1.pdf;/Users/wgao/Zotero/storage/S5I34SW5/sy19_a22_cours10.pdf;/Users/wgao/Zotero/storage/WXR7BKNL/sy19_a22_cours4-5.pdf}
}

Buffer Files

buffer.json last_version.txt

Workflow Configuration

Screenshot 2024-03-29 at 20 17 51

Checklist

chrisgrieser commented 4 months ago

fixed in 11.14.1 https://github.com/chrisgrieser/alfred-bibtex-citation-picker/releases/download/11.14.1/alfred-bibtex-citation-picker.alfredworkflow