jonathansick / ads_bibdesk

(Unmaintained) Mac OS X service for frictionless import of NASA ADS and arXiv publications into BibDesk.
GNU General Public License v3.0
37 stars 20 forks source link

Feature Request / Question: PDF naming #16

Closed keflavich closed 10 years ago

keflavich commented 11 years ago

Using the standard PDF grabber, my files are all named tmp[alphanumerics].pdf. Can we change these to follow, e.g., the cite key or something else? I don't see this as an option at present. I'll work on a solution, but I figure someone else must have had the same problem.

jonathansick commented 11 years ago

To get nice PDF filenames we assume that you've set up BibDesk to AutoFile. This will automatically rename the PDFs that ADS to BibDesk adds to whatever format you like.

  1. Go to Preferences, then AutoFile
  2. Enable "File papers automatically", and set it to "File papers in fixed location"
  3. Use a custom preset format: I like %a1%Y%u0%e to get LastNameYYYY.pdf filenames, which can be setup via the "Advanced" button.

Does this work out for you?

Of course, I intend to add a straight-up PDF downloader option to the CLI application, which would need use nice filenames. But for now I think its best to let BibDesk name your files.

keflavich commented 11 years ago

That resolves my issue; I was unaware of autofile. However, I'll leave this open for now - it would be nice to use python, rather than bibdesk, for string manipulation. I can't figure out how to excise spaces from the file names.