Download attachments into a directory specified on the command line.