#Workflow for importing a foreign library to Papers3
the idea is to write down workflow ideas and their features/flaws using the AppleScript API in papers 3.
##Starting material
- exported bib or xml from Sente
- a directory of PDFs in the Sente/Contents/Attachments directory
##Current Ideas
Import the XML file and use the API to match related-urls file:// with actual file on the disk
Problem:
- can't create a primary file item directly in code to attach to a publication item
Import the PDF files (without reorganizing or renaming them) to create primary file items, then import the xml/bib.
Problem:
- creates duplicates
- no easy way to merge them
Import the PDF files (without reorganizing or renaming them) to create primary file items and manually update the publication item properties from the XML using either XML suite or Late Night XML tools
Problem:
- Applescript sucks at processing XML (or I do, not sure which)
- Too much code, too little time
This seems like the best option, but:
- I know fuck-all about AppleScript
- I don't have time to devote to writting a massive script for this
##Ideas for Papersapp
This would make my life a hell of a lot easier:
allow for file:// links/urls present in either the xml or the bib files to be imported along with publication items!
Hi Chris, I agree that this should be possible. I'll try to look into it.
The scripting support unfortunately doesn't currently support to add primary/supplemental files to publications. This is high up on my TODO list.
Do many/all of your PDFs have DOIs? If so, there's an other option to try:
Now check your articles (with DOI) if Papers did attach any of your PDFs. The Console.app log should contain more info about the success/failure of the process.
Hope this helps, Matthias