I would like to copy a list of DOIs from a set of records to the clipboard for quick import into Zotero. I can find the corresponding AppleScript commands for authors, name, etc. but how would this look like for DOI?
Did you store the DOI as custom metadata or do you want to retrieve it from the document’s content? In the second case see digital object identifier
property.
That was fast
What helped was to get inspired by the Download Bibliographic Data script you provide.
For anyone who is interested this is what I came up with:
on performSmartRule(theRecords)
tell application id "DNtp"
set theList to ""
repeat with theRecord in theRecords
set theMetaData to custom meta data of theRecord
set theList to (theList & ", " & (mddoi of theMetaData))
end repeat
set the clipboard to theList
end tell
end performSmartRule
With a simple CMD+V into the “Add Entry through Identifier” in Zotero, all entries from the selected records are imported.
In my case, a Smart Rule checks the existence of a DOI, one might want to add a clever if
when using standalone
1 Like
Nice!
Can you post a screen capture of how this is done in Zotero for any passers-by using it? Thanks!
Of course
Click on the button marked by the arrow, paste the clipboard content from the script, hit enter
Thanks!