[备忘录]Zotero插件quicklook设置
【下载】
https://github.com/QL-Win/QuickLook?tab=readme-ov-file
https://github.com/QL-Win/QuickLook/releases/tag/3.7.3
【设置】
action & tags 中新建:
if
(item)
return
;
var
item = items[0];
if
(!item)
return
"[Quicklook] item is empty";
var
targetPath =
null
;
if
(item.isRegularItem()){
var
attachmentIDs = item.getAttachments();
for
(
let
id
of
attachmentIDs) {
let
attachment = Zotero.Items.
get
(id); targetPath = attachment.getFilePath();
break
; } }
if
(item.isFileAttachment()){ targetPath = item.getFilePath(); }
if
(targetPath ==
null
){
return
"[Quicklook] target Path is empty"; }
try
{
var
exePath = "C:
\\
Users
\\
\\
AppData
\\
Local
\\
Programs
\\
QuickLook
\\
QuickLook.exe"; Zotero.launchFileWithApplication(targetPath, exePath); }
catch
(e) { Zotero.debug(e); Zotero.showZoteroError(e.message); }
29 【Zotero7和QuickLook联动 - 小冯快快趣毕业 | 小红书 - 你的生活指南】 😆 LI4Eyy8RTpxpr5Q 😆 https://www.xiaohongshu.com/discovery/item/66bc30d2000000001e01db42?source=webshare&xhsshare=pc_web&xsec_token=ABUMrD8G5QLSWD4xDx4Icn32ap-fALgYKYglSU6NTpyX4=&xsec_source=pc_shar
e