Search found 28 matches

by zvh
Sun Jun 16, 2019 1:42 pm
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

I think the section giving you problems now is repeat with i in thePath or rather any remaining usage of the variable "thePath" insofar as you no longer create that variable when you remove this line: set thePath to path of attachment items of myItem Those checks were created to make sure the script...
by zvh
Tue May 14, 2019 6:17 pm
Forum: Looking for AppleScripts…
Topic: Script to create and update BibJSON file
Replies: 0
Views: 2472

Script to create and update BibJSON file

If you've seen the previous script I posted to continuously update a .bib file library, you'll know that one of my strategies for this is to use bib2json and jq to return a list of citekeys from my file against which to compare current Bookends references. Now, I only ever create a .bib file for the...
by zvh
Thu May 02, 2019 12:45 pm
Forum: Bookends
Topic: How do you avoid duplicate CiteKeys across libraries?
Replies: 7
Views: 716

Re: How do you avoid duplicate CiteKeys across libraries?

Just another suggestion: I agree that the best course would be to merge your libraries if possible. If not, however, one thing you could do is take the beginning of my script that updates your Bibfile by making a list of its current BibKeys. With that list, you could almost certainly find a handler ...
by zvh
Thu May 02, 2019 12:37 pm
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

Glad to see you figured that out, Dellu. Also, sorry to be late on replying again to the previous query regarding exporting from DTPO to currently existing Bookends records. Adding the record to Bookends, then, is pretty simple. What you'd do to move the item is either get the path from DEVONthink a...
by zvh
Sat Apr 27, 2019 5:36 pm
Forum: Looking for AppleScripts…
Topic: Guide to Applescript and Bookends
Replies: 8
Views: 1612

Re: Guide to Applescript and Bookends

Perhaps I misread Will's post as speaking to my own situation, but I'm referring to the visibly selected references in the UI and not to marked references. In my case, it's only a problem with references that are recently added, and then when I rebuild the library it seems to clear up the problem wi...
by zvh
Sat Apr 27, 2019 4:10 pm
Forum: Looking for AppleScripts…
Topic: Guide to Applescript and Bookends
Replies: 8
Views: 1612

Re: Guide to Applescript and Bookends

Yes, I've found this as well. Rebuilding my library seems to temporarily fix the problem, but it returns soon after. It always seems to be references added in close proximity that the "selected publication items" command confuses--i.e. selecting the most recent reference will return data for the 5th...
by zvh
Sat Apr 20, 2019 2:05 pm
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

Thanks so much for your help! This doesn't seem to import the actual file from its original path though, does it? (Or should it?) I can add to the attachments field, but this just returns "Can't find file" in Bookends, while the item in the attachment items list is incomplete. Here's part of what I'...
by zvh
Sat Apr 20, 2019 11:48 am
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

Thanks for clarifying, Jon. I've just looked through the manual and dictionary again and can't figure out how to add an attachment item to a currently existing publication item--at least in a way that will import and rename the file. I can easily add a new publication item, whether via quick add or ...
by zvh
Fri Apr 19, 2019 4:28 pm
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

Jon can correct me if I'm wrong, but I'm not sure that there's yet a way to add attachments to existing records using AppleScipt. You might be able to cobble something together by using Finder's library to make the move, but it would likely be finicky and wouldn't, for instance, utilize your Bookend...
by zvh
Wed Apr 17, 2019 6:59 pm
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

There is a "Send to Bookends" script in DEVONthink that can easily be modified to serve the purpose of getting your items from DTPO to Bookends. The one provided is quite basic, but extending it is mostly trivial, especially with Bookends' new scripting library. As for checking whether a reference i...
by zvh
Wed Apr 17, 2019 12:58 am
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

I'm so glad you're finding the script useful and were able to modify it to your specifications. You can do a lot of extra things with the script, including sharing tags and labels. I have a Bookends label, for instance, that is intended to specify items I want on hand but don't necessarily want clut...
by zvh
Sun Mar 24, 2019 4:55 pm
Forum: Looking for AppleScripts…
Topic: Script to update (rather than overwriting) bib file
Replies: 2
Views: 998

Re: Script to update (rather than overwriting) bib file

The version of the script below won't look to delete any entries from your bib file, however this won't speed the script up very much. The only time the script should take a long, long time is if you're building your bib file with every record from scratch. Otherwise, the script does precisely what ...
by zvh
Fri Mar 22, 2019 8:40 pm
Forum: Looking for AppleScripts…
Topic: Script to update (rather than overwriting) bib file
Replies: 2
Views: 998

Script to update (rather than overwriting) bib file

I've written up a quick and mostly untested script in response to Dellu and iandol's conversation from another thread about updating rather than overwriting a bib file. I thought I'd post it here to foreground the explanation for anyone who might want to use it. The script itself can be found here: ...
by zvh
Wed Mar 20, 2019 4:44 pm
Forum: Looking for AppleScripts…
Topic: Bookends PopClip extension
Replies: 2
Views: 929

Bookends PopClip extension

I had said that if Bookends added the ability to quick add through its scripting library, then I would create a PopClip extension to automate this when surfing the web (or doing anything else outside of Bookends that might bring you across an ISBN, DOI, etc.). You can find the extension here: https:...
by zvh
Wed Mar 20, 2019 3:45 pm
Forum: Looking for AppleScripts…
Topic: Autolinking Bookends and DEVONthink records
Replies: 28
Views: 5810

Re: Autolinking Bookends and DEVONthink records

I am getting this when I use the "selection" script. Selecting one item doesn't trigger the error. Selecting two or more items in the library and running the script triggers the error. Yes, I am running it in the Script editor. On the positive side, the script is working fine on the group. I am usi...