Skip to content

Instantly share code, notes, and snippets.

@DesBw
DesBw / bookends-index_unlinked_group_dtpo.scpt
Last active July 13, 2023 16:28 — forked from zverhope/bookends-index_unlinked_group_dtpo.scpt
I changed the format from RIS to BibTeX & Removed the part that writes XML to the pdf because I have already done that using Jabref (which is much faster and more effective to write XML to the pdf files)
tell application "Bookends"
tell front library window
set theIDs to get id of publication items of group item "UnlinkedAttach"
repeat with theID in theIDs
try
set myRefs to (publication items whose id is theID)
set myItem to first item of myRefs
set {theKey, thePath} to {citekey, path of attachment items} of myItem
set theBIB to format myItem using "BibTex.fmt"