代码二次触发重复运行 #292
Answered
by
ramonmi
1067237855
asked this question in
Q&A
代码二次触发重复运行
#292
-
上面的代码在zotero 的Javascript脚本命令中运行,会向选中的条目添加一个“摘要卡.md”文件但是,当输入到zotero-actions-tags中后运行,却向选中的条目添加了2个“摘要卡.md”文件我用GPT反复检查了好几遍了,代码是没问题的,求教大佬解决办法 PS:我想做一个类似mdnotes插件的脚本 |
Beta Was this translation helpful? Give feedback.
Answered by
ramonmi
Mar 18, 2024
Replies: 2 comments 2 replies
-
把第一行去掉,过滤器那里的selectedItem.filter改成items.filter即可实现导入一份摘要卡。 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
1067237855
-
https://github.com/windingwind/zotero-actions-tags?tab=readme-ov-file#custom-script |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
把第一行去掉,过滤器那里的selectedItem.filter改成items.filter即可实现导入一份摘要卡。
但是测试时选中多个项目也会报最后一条提示"Please check if the selected item is a parent item!",这也是我为什么在Attach File脚本中加入
else if (item.isNote() || item.isAttachment()) {
的原因 #290