Search found 42 matches

by msteffens
Tue Mar 04, 2025 4:28 am
Forum: Bookends
Topic: PDF annotations and notes not showing up in Note stream
Replies: 17
Views: 11176

Re: PDF annotations and notes not showing up in Note stream

Someone may have a suggestion to export information to Devonthink. W.r.t. extracting annotations from a PDF and directly importing them into DEVONthink, have a look e.g. at the recent "Exporting annotations?" thread in the DEVONthink forums, and see also the scripts linked in that thread.
by msteffens
Tue Nov 26, 2024 5:21 pm
Forum: Looking for AppleScripts…
Topic: AppleScript to import fields from json file
Replies: 3
Views: 28921

Re: AppleScript to import fields from json file

I'm not sure if tikkari is still looking for a solution but since others may be looking for something similar, I'm posting an AppleScript solution below. The below script will ask you to choose a .json file (which must contain an array of dictionaries with "doi" and "abstract" ke...
by msteffens
Wed Nov 20, 2024 8:02 am
Forum: Looking for AppleScripts…
Topic: AppleScript to import fields from json file
Replies: 3
Views: 28921

Re: AppleScript to import fields from json file

tikkari wrote: Mon Nov 18, 2024 10:06 am Just bought Bookends and learning to use it. Copied articles into Bookends library, but I would like to add abstracts from json file
As JJW notes, it should be doable. Would it be possible for you to upload your JSON file somewhere, or at least post a representative sample?
by msteffens
Thu Oct 03, 2024 9:02 am
Forum: Looking for AppleScripts…
Topic: Create new Internet record and Set Fields
Replies: 5
Views: 13008

Re: Create new Internet record and Set Fields

Thank you so much for the script. You're welcome! In case of Keypoints, I agree that support for annotations made in eBooks would indeed be very nice to have. Unfortunately, this isn't straightforward to implement as—compared to PDF annotation support via the system's PDFKit framework—there's no ma...
by msteffens
Mon Sep 30, 2024 3:55 pm
Forum: Looking for AppleScripts…
Topic: Create new Internet record and Set Fields
Replies: 5
Views: 13008

Re: Create new Internet record and Set Fields

The below script extracts metadata for the frontmost Safari page and creates a new Bookends publication with these metadata. The createBookendsPublication() handler shows how a Bookends publication can be created & populated from AppleScript. The script should work well with journal article page...
by msteffens
Wed Sep 29, 2021 1:24 pm
Forum: Bookends
Topic: [Feature Request] Auto-sync to a BibTeX File
Replies: 46
Views: 70063

Re: [Feature Request] Auto-sync to a BibTeX File

only refs that change get refreshed in the background. Years ago, I've implemented a sync with a BibTeX file for refbase where found records get appended to a local BibTeX file (if they don't yet exist in that file), and existing records in that file get updated if their modification date on the se...
by msteffens
Wed Sep 29, 2021 3:23 am
Forum: Bookends
Topic: Export from Papers 3 sqlite database into Bookends?
Replies: 2
Views: 5659

Re: Export from Papers 3 sqlite database into Bookends?

Papers 3 ceased working for me and none of my attempts to revive it seemed to get it back to a state where I could export all the data successfully. If I understand you correctly, you cannot use an AppleScript-based solution (such as that offered by Bookends or like my script ) since Papers 3 crash...
by msteffens
Thu Nov 19, 2020 6:25 am
Forum: Bookends
Topic: Hook `Copy Link` name format for Bookends references
Replies: 3
Views: 5813

Re: Hook `Copy Link` name format for Bookends references

This script should work similar to yours but uses the newer script implementation : tell application id "com.sonnysoftware.bookends" tell front library window set selectedPubs to selected publication items -- requires Bookends ≥ 13.2.1 if selectedPubs is not {} then set aPub to first item ...
by msteffens
Thu Oct 22, 2020 11:02 am
Forum: Bookends
Topic: Changing 'Attached file “some file”. Reference metadata not found online.'
Replies: 8
Views: 8587

Re: Changing 'Attached file “some file”. Reference metadata not found online.'

This makes me happy! It's a great example of why scriptability is so useful in a productivity app such as Bookends! It empowers users by giving them lots of flexibility to achieve custom or alternate solutions.
by msteffens
Wed Mar 25, 2020 4:20 pm
Forum: Looking for AppleScripts…
Topic: Setting the selection with scripting
Replies: 2
Views: 32501

Re: Setting the selection with scripting

Hi Ryan, I agree it would be useful to be able to set the selected publication item(s) via AppleScript. But currently, the `selected publication items` property of the `library window` class is marked as read only in the Bookends scripting dictionary. I think that the workarounds that you've suggest...
by msteffens
Sun Jan 05, 2020 7:56 pm
Forum: Looking for AppleScripts…
Topic: Get full path of the attachment (selected item)
Replies: 1
Views: 32030

Re: Get full path of the attachment (selected item)

Can you help me to get an apple script that can get me the absolute path of the attachment of a selected reference? Using Bookends 13.2.1 or greater, the below AppleScript code should work: -- Returns the absolute path of the first attachment of the first publication -- selected in the front Booken...
by msteffens
Wed Jul 17, 2019 6:27 pm
Forum: Bookends
Topic: Recommendations about using notes (particularly with Scrivener)
Replies: 6
Views: 10467

Re: Recommendations about using notes (particularly with Scrivener)

All I can say is that I haven't found a place to write notes that I am happy with. I‘ve had similar problems and I‘m currently developing a tool that will hopefully improve on this situation. It‘s a separate Mac app (https://keypoints.app/, not released yet) that‘s meant to gather all your PDF high...
by msteffens
Wed Jul 17, 2019 6:02 pm
Forum: Looking for AppleScripts…
Topic: Papers to Bookends export script
Replies: 35
Views: 365862

Re: Papers to Bookends export script

Hi Phil. Sorry for the late reply, I somehow didn‘t get the post notification. From your description I don’t think you‘ve done anything wrong. I‘m wondering whether the new restrictions with running AppleScripts in macOS Mojave (10.14) somehow cause these issues. In any case, I think that my script ...
by msteffens
Thu Mar 07, 2019 10:56 am
Forum: Bookends
Topic: Importing pdfs and adding keywords from pdf title
Replies: 10
Views: 17755

Re: Importing pdfs and adding keywords from pdf title

iandol wrote: Thu Mar 07, 2019 10:24 am Matthias, even though I won't use this script, thank you for such well documented code; it is really helpful to see well written Applescript examples...
Hi iandol,
many thanks for the kind words! I'm happy the script is useful beyond its original purpose.
Matthias
by msteffens
Thu Mar 07, 2019 3:24 am
Forum: Bookends
Topic: Importing pdfs and adding keywords from pdf title
Replies: 10
Views: 17755

Re: Importing pdfs and adding keywords from pdf title

MjRNeuro wrote: Thu Mar 07, 2019 12:56 am Thank you, this works perfectly!! You've made my transition to Bookends much better. :D
Hi MjRNeuro,
you're welcome, I'm glad to hear that the script worked for you!
Matthias