automator - folder action: add attachment name to subject line email
hello everyone:
my goal was to create a folder action that every time a file (.PDF) was added to a folder it would generate a new email with the subject line = to the file name of the added file, the file would be attached and then sent to the recipient.
i did some searching and found the following automator folder action which does create an email and attaches the file and sends BUT I do not know how to make the file name part of the subject line?? It would be different for each file added.
here is what works in automator
1. Create Folder Action
2. Set "Folder Action receives files and folders added to" client folder
3. Add Launch Application Mail
4. Add New Mail Message and fill in To:, Subject:, and Message:.
5. Add Add Attachment to Front Message
6. Add Send Outgoing Messages
Mac mini 2018 or later