Simple solution to export from DT to Bibtex

Hi,

Recalling the other discussions in this forum about how to integrate Devonthink with Bibtex, I found my own solution, which basically consists in storing the Bibtex bibliographic information as some kind of metadata in the comment field of the information drawer.

My question: How can I export this data into a simple plain text file using Applescript?

Unfortunately I’m not too savvy on this myself. I would simply need something like this: "for the selected files in Devonthink), read spotlight comments and write them into a file (optionally prompt for a filename and location before)“.

Any ideas on this?

Thanks and regards,
Marcel

P.S.: This should work fine for me, I only need Bibtex export capabilities, no syncing is needed.