Apple Script to Extract Info from PDF receipt and auto-populate

Is there anyone out there that has written an apple script or automator that would search a receipt pdf and populate designated fields in Devonthink?

I don’t want to have to go through and manually enter the information for every receipt.

I’m not sure what you need exactly. But I’ve done something like that (perhaps) a while ago. Searching for „hazel maybe“ should lead you to that thread.

A script can access the ocr’d text
Can you specifically identify the information to be extracted?

I use the defined amount field, but sometimes have to manually override it

if document amount of theNote exists then set theAmount to document amount of theNote

Welcome @iamvandelay

@DTLow’s suggestion is a good one but yes, verifying the result would be the best policy.