Applescript to automatically download pdf attachments in Airmail?

Hi, does anyone have an applescript to automatically download PDF attachments in Airmail to a folder on Mac?